selinux 导致无法启动httpd

时间:2023-08-14 08:48:50

selinux 导致无法启动httpd

ansible_dire:~ # /etc/init.d/httpd restart

停止 httpd: [失败]
正在启动 httpd:(13)Permission denied: httpd: could not open error log file /etc/httpd/logs/error_log.
Unable to open logs
[失败]
ansible_dire:~ # getenforce
Enforcing
ansible_dire:~ # setenforce 0

ansible_dire:~ # /etc/init.d/httpd restart
停止 httpd: [失败]
正在启动 httpd: [确定]