临时和永久关闭Selinux

临时关闭:

[root@centos6-198 ~]# getenforce 
Enforcing
[root@centos6-198 ~]# setenforce 0
[root@centos6-198 ~]# getenforce 
Permissive

永久关闭:

[root@centos6-198 ~]#  vim /etc/sysconfig/selinux

SELINUX=enforcing 改为 SELINUX=disabled

重启服务reboot

参考
https://blog.csdn.net/xin_y/article/details/79007986

原文地址:https://www.cnblogs.com/yldf/p/11900059.html