如何在Centos 7上永久禁用SELinux

首先,检查当前的SELinux状态:

sestatus

结果:

SELinux status:                 enabled
SELinuxfs mount:                /sys/fs/selinux
SELinux root directory:         /etc/selinux
Loaded policy name:             targeted
Current mode:                   enforcing
Mode from config file:          enforcing
Policy MLS status:              enabled
Policy deny_unknown status:     allowed
Max kernel policy version:      31

现在编辑selinux配置文件:

vi 
Read more

Centos 7パーマネントでSELinuxを無効にする方法

まず、現在のSELinuxステータスを確認します:

sestatus

結果:

SELinux status:                 enabled
SELinuxfs mount:                /sys/fs/selinux
SELinux root directory:         /etc/selinux
Loaded policy name:             targeted
Current mode:                   enforcing
Mode from config file:          enforcing
Policy MLS status:              enabled
Policy deny_unknown status:     allowed
Max kernel policy version:      31

selinuxの構成ファイルの編集:

vi 
Read more