"48: Address already in use" error
ynasser
nginx-forum at nginx.us
Fri Sep 9 15:18:17 UTC 2011
This is the error message I get when I try to run nginx:
nginx: [emerg] bind() to 0.0.0.0:80 failed (48: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (48: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (48: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (48: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (48: Address already in use)
nginx: [emerg] still could not bind()
I have disabled apache, so it's not that. Previous to this, I
uninstalled nginx (using mac osx snow leopard), but 0.0.0.0 and
127.0.0.1 were still displaying "Welcome to nginx". I then re-installed
nginx and I have been trying to run it, but I am getting these errors.
I've tried checking what is on port 80 with this:
$ sudo lsof -i:80
but nothing is returned.
0.0.0.0:80 displays: "404 Not Found nginx/1.0.6"
Output of "ps ax -o pid,ppid,%cpu,vsz,wchan,command|egrep
'(nginx|PID)'"
> PID PPID %CPU VSZ WCHAN COMMAND
>35198 1 0.0 2435856 - nginx: master process nginx
>35199 35198 0.0 2436044 - nginx: worker process
>41669 32470 0.0 2425524 - egrep (nginx|PID)
nginx.conf can be found here: http://pastebin.com/Rq8vKHXn
Would anyone happen to know how to resolve this?
Thank you in advance.
Posted at Nginx Forum: http://forum.nginx.org/read.php?2,215031,215031#msg-215031
More information about the nginx
mailing list