8月 12, 2010
apache再起動エラー Address already in use: make_sock: could not bind to address [::]:80
apache再起動をかけたら下記エラーが上がって来ちゃった。。。
[root@centos ~]# /etc/init.d/httpd restart httpd を停止中: [失敗] httpd を起動中: (98)Address already in use: make_sock: could not bind to address [::]:80 (98)Address already in use: make_sock: could not bind to address 0.0.0.0:80 no listening sockets available, shutting down Unable to open logs [失敗]
エラー内容の通り、80ポートが使われてる。。。
apacheデーモン停止が失敗したからかな。。。
とりあえずapacheの使用状況確認
[root@centos ~]# /usr/sbin/lsof -i | grep http perl 15341 apache 3u IPv6 7396 TCP *:http (LISTEN) perl 15341 apache 5u IPv6 7401 TCP *:https (LISTEN)
使ってること一目瞭然、後はそれを切っちゃえばOK
[root@centos ~]# kill -9 15341 [root@centos ~]# /usr/sbin/lsof -i | grep http [root@centos ~]# [root@centos ~]# /etc/init.d/httpd start httpd を起動中: [ OK ]