2013-08-27 10:55:16
来 源
itjs.cn
Apache
这篇文章里介绍了Linux系统下Apache服务器启动失败的解决办法,希望对于初学Apache服务器相关的朋友有帮助,更多Apache安装、配置、报错处理等资源请本站内搜索。

系统重启后发现,Apache启动失败

报错如下:

# ./apachectl start

(98)Address already in use: make_sock: could not bind to address [::]:80

no listening sockets available, shutting down

Unable to open logs

查了下80

#netstat -Inp|grep 80

tcp        0      0 127.0.0.1:631               0.0.0.0:*                   LISTEN      17803/cupsd        

tcp        0      0 :::5803                     :::*                        LISTEN      5962/java          

tcp        0      0 :::5804                     :::*                        LISTEN      5962/java          

tcp        0      0 :::8880                     :::*                        LISTEN      8101/java          

tcp        0      0 :::80                       :::*                        LISTEN      17838/httpd        

tcp        0      0 :::9809                     :::*                        LISTEN      4335/java          

tcp        0      0 :::9080                     :::*                        LISTEN      8101/java          

tcp        0      0 :::8093                     :::*                        LISTEN      5962/java          

udp        0      0 0.0.0.0:631                 0.0.0.0:*                               17803/cupsd

准备kill掉httpd,然后重启Apache

但是一直失败,jobID一直递增

后来就查了下http

# ps -ef|grep http

apache   17843     1  0 Oct27 ?        00:00:00 /usr/sbin/httpd -k start

apache   17844     1  0 Oct27 ?        00:00:00 /usr/sbin/httpd -k start

apache   17845     1  0 Oct27 ?        00:00:00 /usr/sbin/httpd -k start

root     24365 23466  0 10:29 pts/1    00:00:00 grep http

然后看到了3个ID

逐个kill掉

#kill -9 17845

#kill -9 17844

#kill -9 17843

重启Apache,成功!

声明: 此文观点不代表本站立场;转载须要保留原文链接;版权疑问请联系我们。