如何关闭selinux

查看当前SElinux是否关闭

[root@www ~]# getenforce        #查看状态
Disabled
[root@www ~]# setenforce 0        #临时修改为disabled
setenforce: SELinux is disabled
[root@www ~]# vim /etc/selinux/config    #永久关闭,但是需要重启服务器后生效


猜你喜欢

转载自blog.51cto.com/12107790/2174383