查看selinux与关闭方法
作者:互联网
查看当前用户selinux 状态
[root@oldboy-09 ~]# getenforce Disabled [root@oldboy-09 ~]# setenforce usage: setenforce [ Enforcing | Permissive | 1 | 0 ]
永久关闭方法为:编辑/etc/selinux/config
# 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=disabled # SELINUXTYPE= can take one of these two values: # targeted - Targeted processes are protected, # mls - Multi Level Security protection. SELINUXTYPE=targeted
标签:setenforce,SELINUXTYPE,查看,selinux,09,disabled,关闭,SELinux 来源: https://www.cnblogs.com/imp-W/p/10383686.html