处理Apache Address already in use: make_sock: could not bind to port 80 or 443

解决方案

检查是否正在运行SELinux

使用netstat命令检查,确保端口80/443没有被任何其他服务或应用程序使用:

# netstat -tulpn| grep :80

如果端口80绑定到httpd,请终止所有进程:

# killall -9 httpd

现在启动httpd:

# /etc/init.d/httpd start

另外,在启动httpd时,请确保您是root用户。

问题

重新启动Apache时,报错

Address already in use: make_sock: could not bind to port 80

日期:2019-11-20 08:54:17 来源:oir作者:oir