Starting Httpd: (98)Address Already in Use

Terminal
1
2
3
4
5
6
7
8
$ sudo /usr/sbin/httpd -S
VirtualHost configuration:
wildcard NameVirtualHosts and _default_ servers:
_default_:443          www.xxxx.com (/etc/httpd/conf.d/ssl.conf:81)
*:80                   is a NameVirtualHost
         port 80 namevhost blog.xxxx.cn (/etc/httpd/conf.d/blogger.conf:1)
         port 80 namevhost staging.xxxx.com (/etc/httpd/conf.d/john.conf:1)
Syntax OK

没有语法出错啊?

Terminal
1
2
3
4
5
6
$ sudo /etc/init.d/httpd restart
Stopping httpd:                                            [FAILED]
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

$ sudo /etc/init.d/httpd stop 还是报同样的错误.

还以为是配置文件出错!结果是有些缰尸进程杀不掉!

Terminal
1
2
$sudo killall httpd
$sudo /etc/init.d/httpd start

终于一切正常了。

原文地址:http://dlj.bz/UNGcFd

Comments