分享、学习、提高
2007/09/05 16:19
文章作者:Enjoy 转载请注明原文链接。
新接手一台服务器,修改了下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不了。
发表评论
表情
emotemotemotemotemot
打开HTML
打开UBB
打开表情
隐藏
昵称   密码   游客无需密码
网址   电邮   [注册]