标签:force 生效 miss class cin 修改 linux 关闭 etc
[root@XM ~]#cat /etc/selinux/config ##selinux的路径
[root@XM ~]#sed ‘s#SELINUX=enforcing#SELINX=disabled#g‘ /etc/selinux/config ##修改加-i
[root@XM ~]#grep "disabled" /etc/selinux/config ##过滤
# disabled - No SELinux policy is loaded.
SELINUX=disabled
You have new mail in /var/spool/mail/root
[root@XM ~]#getenforce ##查看修改后的状态
Enforcing
[root@XM ~]#setenforce 0##修改成Permissive当前环境下只会警告不会影响使用,下次重启生效
[root@XM ~]#getenforce
Permissive
[root@XM ~]#setenforce
usage: setenforce [ Enforcing | Permissive | 1 | 0 ]
标签:force 生效 miss class cin 修改 linux 关闭 etc
原文地址:https://www.cnblogs.com/Confusedren/p/9776010.html