linux address already in use:make_sock:could not bind to address [::]:80

First make sure port 80/443 is not used by any other service or application with netstat command:

# netstat -tulpn| grep :80

If port 80 is bind to httpd, kill all process:
# killall -9 httpd

Now start the httpd:
# /etc/init.d/httpd start

Also make sure you are root while starting the httpd.

说明:如果直接只kill掉httpd的单个进程,有时会马上重启新的进程,httpd restart仍会失败。

原文地址:https://www.cnblogs.com/ningvsban/p/2827461.html