关闭selinux


[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 ]


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM