apache启动不了
为了使服务器的网络实现冗余,所以把外网的一台服务器做了双网卡聚合。操作后重启这台服务器上的httpd服务报错!# /etc/init.d/httpd start
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
采用以下方法恢复服务
# ps -aux | grep apache
Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps-3.2.7/FAQ
apache 137310.10.0 53603000 ? R Oct0356:53 /usr/local/apache/bin/httpd -DSSL
apache 137370.10.0 53603068 ? R Oct0338:05 /usr/local/apache/bin/httpd -DSSL
apache 137670.10.0 53602996 ? R Oct0357:00 /usr/local/apache/bin/httpd -DSSL
root 323100.00.0 5020 688 pts/1 S+ 10:25 0:00 grep apache
# kill -9 13731
# kill -9 13737
# kill -9 13767
# /etc/init.d/httpd start
Starting httpd:
# /etc/init.d/httpd restart
Stopping httpd:
Starting httpd:
总结杀死全部apache进程,然后启动服务。
出现这种问题的原因,很有可能是操作系统本身已经安装了apache造成的。所以建议在安装操作系统时将原有的apache卸载掉。否则即便启动apache成功启动的也是系统本身安装的apache。
页:
[1]