sestatus 命令linux
[benny@benny ~]$ sestatus SELinux status: disabled
[benny@benny ~]$ setenforce 0 setenforce: SELinux is disabled
修改配置文件/etc/selinux/config,將其中SELINUX設置爲disabledshell
# This file controls the state of SELinux on the system. # SELINUX= can take one of these three values: # enforcing - SELinux security policy is enforced. # permissive - SELinux prints warnings instead of enforcing. # disabled - No SELinux policy is loaded. # SELINUX=enforcing SELINUX=disabled # SELINUXTYPE= can take one of three two values: # targeted - Targeted processes are protected, # minimum - Modification of targeted policy. Only selected processes are protected. # mls - Multi Level Security protection. SELINUXTYPE=targeted