禁止selinux方法
永久关闭
修改/etc/sysconfig/selinux,SELINUX=enforcing /enabled改为 SELINUX=disabled,重启
临时关闭
[root@localhost ~]# getenforce
Enforcing
[root@localhost ~]# setenforce 0
[root@localhost ~]# getenforce
Permissive
修改/etc/sysconfig/selinux,SELINUX=enforcing /enabled改为 SELINUX=disabled,重启
[root@localhost ~]# getenforce
Enforcing
[root@localhost ~]# setenforce 0
[root@localhost ~]# getenforce
Permissive