这突然接手的服务器,本来是没什么事的,可是因为机房的问题,需要将服务器迁回来,结果可想而知,关机重启了,其中有一台估计诚心给我过不去,待配置好ip并重启了服务后,发现apache无法正常启动了!
先还没有发现没启动,待点击网页访问时,居然弹出的是linux的网页默认welcome页面,还害得我去查了查是不是httpd.conf中的虚拟目录弄错了。烦恼唉烦恼,对着那文件折腾了半天,于是就试着重启下httpd,以及apache,这才发现问题。
提示了一排天书:
引用
httpd not running, trying to start
(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
(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端口~httpd没有正常启动!查了查相关端口的使用情况,发现也就是httpd在用着嘛,有很多httpd的服务占用着。本来很烦恼的问题,突然来了想法,很关掉那个httpd试试~
引用
killall -9 httpd
再来试试:
引用
/usr/local/apache2/bin/apachectl start
转:http://dodomail.iteye.com/blog/799078