Disable selinux

1, the temporary closure:

[root@localhost ~]# getenforce
Enforcing

[root@localhost ~]# setenforce 0
[root@localhost ~]# getenforce
Permissive

2, permanently closed:

[root@localhost ~]# vim /etc/sysconfig/selinux

SELINUX=enforcing 改为 SELINUX=disabled

Restart Services reboot

Guess you like

Origin www.cnblogs.com/william1015/p/12120199.html