"48: Address already in use" error
Mauro Stettler
mauro.stettler at gmail.com
Fri Sep 9 15:21:26 UTC 2011
you probably still have an nginx running and listening on localhost
port 80. what do you mean with install/uninstall, how did you do that?
after uninstalling did you make sure the running process is also dead?
try to "sudo killall nginx" and then try to run it again.
On Fri, Sep 9, 2011 at 23:18, ynasser <nginx-forum at nginx.us> wrote:
> 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
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
More information about the nginx
mailing list