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

428 ワード

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.
説明:httpdの単一プロセスのみをkillで削除すると、すぐに新しいプロセスが再起動される場合があり、httpd restartは失敗します.