/ centos7 (아파치) http (98)Address already in use: AH00072: make_sock: could n...]:80 에러 확인
본문 바로가기
서버관리

centos7 (아파치) http (98)Address already in use: AH00072: make_sock: could n...]:80 에러 확인

by 문용민 2022. 2. 9.
반응형

 (http 데몬 프로세스 19049가 실행중이라 충돌나서 발생하는 현상임

 

// 이미 실행되고 있는 httpd 데몬 재시작 해볼려고 하였지만 아래와 같은 에러가 발생함. 

[root@client etc]# systemctl restart httpd
Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.

// httpd 상태 로그 확인
[root@client etc]# systemctl status httpd
● httpd.service - The Apache HTTP Server
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Tue 2022-02-08 03:30:30 UTC; 20h ago
     Docs: man:httpd(8)
           man:apachectl(8)
  Process: 15574 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
 Main PID: 15574 (code=exited, status=1/FAILURE)

Feb 08 03:30:30 client systemd[1]: Starting The Apache HTTP Server...
Feb 08 03:30:30 client httpd[15574]: AH00558: httpd: Could not reliably determine the server...sage
Feb 08 03:30:30 client httpd[15574]: (98)Address already in use: AH00072: make_sock: could n...]:80
Feb 08 03:30:30 client httpd[15574]: (98)Address already in use: AH00072: make_sock: could n...0:80


// netstat 명령어로 포트 80번 확인 (http 데몬 프로세스 19049가 실행중이라 충돌나서 그럼)
[root@client etc]# netstat -nlp | grep :80
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      19049/nginx: master

// 19049 프로세스 kill
[root@client etc]# kill -9 19049

// http 다시 시작
[root@client etc]# systemctl start httpd

반응형

댓글