当前位置: 代码迷 >> 综合 >> Starting httpd: (98)Address already in use: make_sock: could not bind to address [::]:80 (98)Address
  详细解决方案

Starting httpd: (98)Address already in use: make_sock: could not bind to address [::]:80 (98)Address

热度:49   发布时间:2023-12-16 19:48:42.0

我在通过service httpd restart的时候,服服务器提示:


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


是说80端口已经再使用了。


查阅了一些地方,有人推荐使用:

$ sudo fuser -k -n tcp 80 
$ sudo /etc/init.d/httpd -k start

还有就是在httpd.conf中,有这么一句,就是说:

listen *:80,这句话注释掉,应该也可以。没有测试过


  相关解决方案