2009年12月11日 星期五

apache error could not bind to address 0.0.0.0:80 no listening sockets available, shutting do



(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down

Is usually caused by an already running apache. You can check what's listening on port 80 with:

sudo netstat -lpnt | grep 80
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 3647/nginx

Then you can kill that proc with:

kill 3647

Use the number in your output not just 3647 :) . If it still won't die you can use -9:

kill -9 3647

Of course all this should be just fixable with a reboot too.


沒有留言:

張貼留言