查看SELinux状态:
可以使用sestatus
/usr/sbin/sestatus -v ## SELinux status 为enabled 即为开启状态
也可以使用getenforce
getenforce
关闭SELinux:
临时关闭
setenforce 0 ## 设置SELinux 成为permissive模式
setenforce 1 ## 设置SELinux 成为enforcing模式
永久关闭
修改 /etc/selinux/config
将SELINUX=enforcing改为SELINUX=disabled
重启机器即可
转载请注明:XAMPP中文组官网 » Centos7.1 SELinux