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仍会失败。

posted @ 2012-12-21 09:46  NW_KNIFE  阅读(300)  评论(0编辑  收藏  举报