访问apache出现下面的问题:

[root@localhost tools]# /etc/init.d/httpd restart
停止 httpd:[失败]
启动 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
[失败]

1.netstat -lnp|grep 80

tcp        0      0 192.168.180.68:61027        0.0.0.0:*                   LISTEN      6289/oproxyd       
tcp        0      0 :::80                       :::*                        LISTEN      846/httpd          
tcp        0      0 ::ffff:192.168.180.68:7001 :::*                        LISTEN      32015/java         

找到pid 846

#ps 846

查看
#kill -9 846

杀掉

#./apachectl start

启动成功