인디노트

httpd Permission denied make_sock could not bind to address 0.0.0.0:9443 본문

개발 플랫폼 및 언어

httpd Permission denied make_sock could not bind to address 0.0.0.0:9443

인디개발자 2018. 3. 7. 14:49

[root@centos7 certs]# systemctl status httpd

● httpd.service - The Apache HTTP Server

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

   Active: failed (Result: exit-code) since Wed 2018-03-07 00:44:55 EST; 12s ago

     Docs: man:httpd(8)

           man:apachectl(8)

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

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

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


Mar 07 00:44:55 centos7 httpd[11840]: (13)Permission denied: AH00072: make_sock: could not bind to address [::]:9443

Mar 07 00:44:55 centos7 httpd[11840]: (13)Permission denied: AH00072: make_sock: could not bind to address 0.0.0.0:9443

Mar 07 00:44:55 centos7 httpd[11840]: no listening sockets available, shutting down

Mar 07 00:44:55 centos7 httpd[11840]: AH00015: Unable to open logs

Mar 07 00:44:55 centos7 systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE

Mar 07 00:44:55 centos7 kill[11844]: kill: cannot find process ""

Mar 07 00:44:55 centos7 systemd[1]: httpd.service: control process exited, code=exited status=1

Mar 07 00:44:55 centos7 systemd[1]: Failed to start The Apache HTTP Server.

Mar 07 00:44:55 centos7 systemd[1]: Unit httpd.service entered failed state.

Mar 07 00:44:55 centos7 systemd[1]: httpd.service failed.


위와 같은 문제가 발생하면

[root@centos7 certs]# yum -y install policycoreutils-python

[root@centos7 certs]# semanage port -a -t http_port_t -p tcp 9443


반응형
Comments