CentOS搭建apache,老是报错:(13)Permission denied: file permissions deny server access

查错误日志, 发现apache启动时有提示:[notice] SELinux policy enabled; httpd running as context unconfined_u:system_r:httpd_t:s0linux

原来是SELinux的安全策略致使的。apache

临时方案:setenforce 0安全

永久方案:修改/etc/sysconfig/selinux:SELINUX=disabled 重启生效!日志

相关文章
相关标签/搜索