临时和永久关闭SELinux
1.临时关闭
#查看SELINUX 状态
[root@testhost etc]# getenforce
Disabled
#0表示关闭,1表示开启。
[root@testhost etc]# setenforce 0
setenforce: SELinux is disabled
2.永久关闭(重启永久生效)
[root@testhost selinux]# vim config
将SELINUX=enforcing
改为SELINUX=disabled
[root@testhost selinux]#reboot #重启主机最后更新于