Welcome! Log In Create A New Profile

Advanced

"48: Address already in use" error

September 09, 2011 11:18AM
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.
Subject Author Posted

"48: Address already in use" error

ynasser September 09, 2011 11:18AM

Re: "48: Address already in use" error

replay September 09, 2011 11:22AM

Re: "48: Address already in use" error

ynasser September 09, 2011 11:26AM

Re: "48: Address already in use" error

dhaval d. September 09, 2011 01:42PM

Re: "48: Address already in use" error

ynasser September 09, 2011 01:52PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 70
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready