全球主机交流论坛

标题: (98)Address already in use: make_sock: could not bind to address 0.0.0.0:80 [打印本页]

作者: cxd44    时间: 2012-11-18 01:52
标题: (98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80

lnmp的,求解脱
作者: cxd44    时间: 2012-11-18 02:01
80端口被占用,apache无法重启解决
2012年07月31日 ⁄ CentOS ⁄ 共 434字 ⁄ 评论数 1 ⁄ 被围观 167 views+

apache重启的时候可能会出现以下错误:
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端口的程序列表
netstat -lnp|grep 80
返回:
tcp        0      0 :::80                       :::*                        LISTEN      14860/httpd
或者ps -aux | grep apache查看所有apache的进程
#查看14860进程ID所对应的程序
ps 14860
#杀死这个进程ID
kill -9 14860
或这个杀死所有的httpd进程,更绝.
pkill -9 httpd
然后就可以重启httpd服务了

作者: ㄒiger    时间: 2012-11-18 02:04
你检查下你添加的域名 是不是重复的,。如果重复的话。就会提示这个了。

作者: cxd44    时间: 2012-11-18 02:06
ㄒiger 发表于 2012-11-18 02:04
你检查下你添加的域名 是不是重复的,。如果重复的话。就会提示这个了。
...

是进程占了,我kill了




欢迎光临 全球主机交流论坛 (https://fd.vvwvv.eu.org/) Powered by Discuz! X3.4