service httpd start
Starting httpd: (98)Address already in use: make_sock: could not bind to address
(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]
ps ax |grep httpd | awk ‘{if (NR = 2) { print “kill -KILL ” $1} }’ > /home/xxx.sh
先把占用80端口的进程找出来 kill掉
1.如果是windows下 netstat -aon|findstr “80”
2.如果linux平台,使用:lsof -i:80
kill -9 对应ID
service httpd restart
Starting httpd: (98)Address already in use: make_sock: could not bind to add
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]
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
启动成功
service httpd start
Starting httpd: (98)Address already in use: make_sock: could not bind to address [::]:443
no listening sockets available, shutting down
Unable to open logs
[FAILED]
[root@mypiao ~]# netstat -lnp|grep 80
tcp 0 0 :::80 :::* LISTEN 11886/wget
[root@mypiao ~]# kill -9 11886
[root@mypiao ~]# service httpd start
Starting httpd: [ OK ]