当前位置: 技术问答>linux和unix
我的apache启动不了了!!!急,在线等。
来源: 互联网 发布时间:2015-03-09
本文导语: 网站速度很慢,我就./apachectl stop,准备停了重起,但是 ./apachectl graceful 或者 restart start都不行了!!! error.log显示: [Wed May 14 15:09:45 2003] [crit] (98)Address already in use: make_sock: could not bind to port 80 好像是...
网站速度很慢,我就./apachectl stop,准备停了重起,但是 ./apachectl graceful
或者 restart start都不行了!!!
error.log显示:
[Wed May 14 15:09:45 2003] [crit] (98)Address already in use: make_sock: could not bind to port 80
好像是地址被占用,但我怎么杀掉它阿。进程里看不到。ps aux或者top都没有
netstat -al显示
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 211.100.7.111:http 61.171.211.249:35121 SYN_RECV
tcp 0 0 211.100.7.111:http televider.infosee:60577 SYN_RECV
tcp 0 0 211.100.7.111:http crawl27.googlebot:25797 SYN_RECV
tcp 0 0 211.100.7.111:http 218.24.98.213:10271 SYN_RECV
tcp 0 0 211.100.7.111:http nwkea-http-1.sun.:56418 SYN_RECV
等等一大堆连接,怎么去掉阿????
多谢
或者 restart start都不行了!!!
error.log显示:
[Wed May 14 15:09:45 2003] [crit] (98)Address already in use: make_sock: could not bind to port 80
好像是地址被占用,但我怎么杀掉它阿。进程里看不到。ps aux或者top都没有
netstat -al显示
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 211.100.7.111:http 61.171.211.249:35121 SYN_RECV
tcp 0 0 211.100.7.111:http televider.infosee:60577 SYN_RECV
tcp 0 0 211.100.7.111:http crawl27.googlebot:25797 SYN_RECV
tcp 0 0 211.100.7.111:http 218.24.98.213:10271 SYN_RECV
tcp 0 0 211.100.7.111:http nwkea-http-1.sun.:56418 SYN_RECV
等等一大堆连接,怎么去掉阿????
多谢
|
先查出是哪个进程bind 80 port
lsof -i:80 //好象是这个命令 好久没有用了
然后就不要我说了吧
lsof -i:80 //好象是这个命令 好久没有用了
然后就不要我说了吧
|
ps uax|grep httpd
看看有没有httpd进程在,如果有killall -9 httpd
看看有没有httpd进程在,如果有killall -9 httpd
|
你确认已经停了?
再用./apachectl stop
然后用./apachectl start
或者./httpd start
再用./apachectl stop
然后用./apachectl start
或者./httpd start