分享、学习、提高
2007/09/05 16:19
Tags: , ,
新接手一台服务器,修改了下apache的配置,才知道2.2以后的虚拟主机配置在extra目录下httpd-vhost.confshy,开始在conf/httpd.conf看,就没发现任何配置信息,还以为搞错了呢。修改后,重启出错。
[root@hx rc.d]# /usr/local/apache22/bin/apachectl restart    
httpd not running, trying to start
(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

[root@hx rc.d]# /usr/local/apache22/bin/apachectl stop
httpd (no pid file) not running

[root@hx rc.d]# /usr/local/apache22/bin/apachectl start
(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

不知道怎么回事,SE查了一下,也没找到确切的原因。

最后偷懒,不找原因了,直接Kill掉,再启动。
killall -9 httpd
/usr/local/apache22/bin/apachectl start

就OK了,之后再重启也正常了。

感觉有可能是httpd进程太多,所以暂时stop不了。
分页: 1/1 第一页 1 最后页 [ 显示模式: 摘要 | 列表 ]