参考:http://www.weiruoyu.cn/?p=699
查看SELinux 的状态
查看SELinux命令:getenforce;
#enforcing开启selinux保护
#permissive未开启但允许不保护给root提示警告
#disabled不启用
永久关闭
vim /etc/sysconfig/selinux etc/selinux/config
把SELINUX=enforcing 改为 SELINUX=disabled .
然后重启
临时关闭SELinux。
如果你仅仅只是想临时关闭,可以输入setenforce 0
转载于:https://blog.51cto.com/weiruoyu/702982