查錯誤日誌, 發現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 重啓生效!日誌