apache启动不了

为了使服务器的网络实现冗余,所以把外网的一台服务器做了双网卡聚合。操作后重启这台服务器上的httpd服务报错!

[root@test ~]# /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
                                                           [FAILED]

采用以下方法恢复服务

[root@test ~]# ps -aux | grep apache
Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps-3.2.7/FAQ
apache   13731  0.1  0.0   5360  3000 ?        R    Oct03  56:53 /usr/local/apache/bin/httpd -DSSL
apache   13737  0.1  0.0   5360  3068 ?        R    Oct03  38:05 /usr/local/apache/bin/httpd -DSSL
apache   13767  0.1  0.0   5360  2996 ?        R    Oct03  57:00 /usr/local/apache/bin/httpd -DSSL
root     32310  0.0  0.0   5020   688 pts/1    S+   10:25   0:00 grep apache
[root@test ~]# kill -9 13731
[root@test ~]# kill -9 13737
[root@test~]# kill -9 13767

[root@test ~]# /etc/init.d/httpd start
Starting httpd:                                            [  OK  ]
[root@test ~]# /etc/init.d/httpd restart
Stopping httpd:                                            [  OK  ]
Starting httpd:                                            [  OK  ]

总结杀死全部apache进程,然后启动服务。

出现这种问题的原因,很有可能是操作系统本身已经安装了apache造成的。所以建议在安装操作系统时将原有的apache卸载掉。否则即便启动apache成功启动的也是系统本身安装的apache。

你可能感兴趣的:(职场,休闲,apache启动不了)