프로그래밍 Programming
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
문장전달자
2017. 5. 10. 13:23
728x90
아파치 서비스 시작시 다음과 같은 에러가 발생하는 경우
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
1 2 3 4 5 6 7 8 | (envalicia) root@localhost:~/vikander# sudo service apache2 restart * Restarting web server apache2 (98)Address already in use: AH00072: make_sock: could not bind to address [::]:80 (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80 no listening sockets available, shutting down AH00015: Unable to open logs Action 'start' failed. The Apache error log may have more information. | cs |
다음과 같이 아파치 프로세스를 종료시킨 후 서비스를 재시작한다.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | (envalicia) root@localhost:~/vikander# sudo netstat -ltnp | grep ':80' tcp 0 0 0.0.0.0:8079 0.0.0.0:* LISTEN 1225/nginx tcp 0 0 0.0.0.0:8000 0.0.0.0:* LISTEN 10819/python tcp6 0 0 :::80 :::* LISTEN 26421/apache2 (envalicia) root@localhost:~/vikander# sudo kill -9 26421 (envalicia) root@localhost:~/vikander# sudo netstat -ltnp | grep ':80' tcp 0 0 0.0.0.0:8079 0.0.0.0:* LISTEN 1225/nginx tcp 0 0 0.0.0.0:8000 0.0.0.0:* LISTEN 10819/python (envalicia) root@localhost:~/vikander# sudo service apache2 restart * Restarting web server apache2 [ OK ] (envalicia) root@localhost:~/vikander# sudo netstat -ltnp | grep ':80' tcp 0 0 0.0.0.0:8079 0.0.0.0:* LISTEN 1225/nginx tcp 0 0 0.0.0.0:8000 0.0.0.0:* LISTEN 10819/python tcp6 0 0 :::80 :::* LISTEN 27679/apache2 | cs |
참고 https://ubuntuforums.org/showthread.php?t=1636667
728x90