Centos给文件设置了777权限仍不能访问:linux
开启了SELinux致使ci
1.查看SELinux状态:
/usr/sbin/sestatus -v ##若是SELinux status参数为enabled即为开启状态
SELinux status: enabled
##也能够用这个命令检查getenforceget
2.关闭SELinux:
a.临时关闭(不用重启机器):
setenforce 0 ##设置SELinux 成为permissive模式
b.临时开启(不用重启机器):
setenforce 1 ##设置SELinux 成为enforcing模式
c.修改配置文件须要重启机器:
修改/etc/selinux/config 文件
将SELINUX=enforcing改成SELINUX=disabled
reboot重启机器便可配置