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