apache报错Address already in use: make_sock: could not bind to address [::]:80

阅读 30

2021-09-22

报错

(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

用命令查看什么进程占用了80端口

netstat -nlp |grep :80

发现是httpd进程

[root@qiangqiang logs]# netstat -nlp |grep :80
tcp        0      0 :::80              :::*             LISTEN      2102/httpd 

杀掉所有的httpd进程

killall -9 httpd

重启apache服务器

apachectl start

发现现在能够正常重启,不会出现上述问题

[root@qiangqiang logs]# apachectl restart
httpd not running, trying to start
[root@qiangqiang logs]# netstat -nlp |grep :80
tcp        0      0 :::80             :::*              LISTEN      6519/httpd 

精彩评论(0)

0 0 举报