临时关闭:
[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