我在通过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,这句话注释掉,应该也可以。没有测试过