could not bind to address 0.0.0.0:80 no listening sockets available, shutting down

在启动apache服务的时候(service httpd start 启动)出现这个问题。

出现这个问题,是因为APACHE的默认端口被占用的缘故.解决方法就是把这个端口占用的程序占用的端口去掉。

使用命令:netstat -lnp|grep 80  查看80端口使用

如:tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      26703/apache2  

kill -9 26703杀死这个进程。

再次查看确保这个80端口没有被使用,service httpd start 启动,再次启动就可以了。