服务器某次故障,重启httpd出现如下错误提示
1 2 3 4 5 6 | # /etc/init.d/httpd restart Stopping httpd: [ OK ] Starting 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 |
利用fuser揪出占用该端口的进程ID,并kill掉
1 | $ sudo fuser -k -n tcp 80 |
发送apache启动信号
1 | $ sudo /etc/init.d/httpd -k start |
参考资料
1 | fuser命令详解 http://www.91linux.com/html/article/cmd/20080818/13235.html |