Welcome! Log In Create A New Profile

Advanced

Re: "48: Address already in use" error

September 09, 2011 11:22AM
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@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@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
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: 271
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready