Permission denied: AH00072: make_sock: could not

httpd.service - The Apache HTTP Server

? Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)

? Active: failed (Result: exit-code) since 四 2018-07-12 07:09:13 CST; 5s ago

? ? Docs: man:httpd(8)

? ? ? ? ? man:apachectl(8)

? Process: 2913 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE)

? Process: 2909 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)

Main PID: 2909 (code=exited, status=1/FAILURE)

7月 12 07:09:13 centos httpd[2909]: (13)Permission denied: AH00072: make_sock: could not b...085

7月 12 07:09:13 centos httpd[2909]: (13)Permission denied: AH00072: make_sock: could not b...085

7月 12 07:09:13 centos httpd[2909]: no listening sockets available, shutting down

7月 12 07:09:13 centos httpd[2909]: AH00015: Unable to open logs

7月 12 07:09:13 centos systemd[1]: httpd.service: main process exited, code=exited, statu...LURE

7月 12 07:09:13 centos kill[2913]: kill: cannot find process ""

7月 12 07:09:13 centos systemd[1]: httpd.service: control process exited, code=exited status=1

7月 12 07:09:13 centos systemd[1]: Failed to start The Apache HTTP Server.

7月 12 07:09:13 centos systemd[1]: Unit httpd.service entered failed state.

7月 12 07:09:13 centos systemd[1]: httpd.service failed.

Hint: Some lines were ellipsized, use -l to show in full.


解決辦法

semanage port -l|grep http

semanage port -a -t http_port_t -p tcp 81

修改/etc/selinux/config找到SELINUX=enforcing 修改為SELINUX=disable,然后reboot即可

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容