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即可

你可能感兴趣的:(Permission denied: AH00072: make_sock: could not)