临时和永久关闭Selinux

临时关闭:

[root@localhost ~]# getenforce
Enforcing

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

永久关闭:

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

SELINUX=enforcing 改为 SELINUX=disabled

重启服务reboot

他强由他强,清风拂山冈。他横任他横,明月照大江。
原文地址:https://www.cnblogs.com/gucb/p/11157203.html