SELinux 关闭方法

临时关闭selinux,可执行:

setenforce 0  // 设置selinux状态 1启用,0警告、不启用。

getenforce   //检查selinux状态是否生效

 

永久关闭selinux功能:

         cat /etc/selinux/config

         cp /etc/selinux/config /etc/selinux/config.root

sed -i 's#SELINUX=enforcing#SELINUX=disabled#g' /etc/selinux/config

 

posted @ 2018-10-21 19:15  南清风  阅读(290)  评论(0编辑  收藏  举报