Welcome! Log In Create A New Profile

Advanced

Nginx won't stop

Matthew M.
December 06, 2011 07:32PM
Hello everyone,

I've spent the last few hours on what I thought was the end of a
Rails/Passenger/Nginx setup but I have had absolutely no luck.

When I try to restart nginx (using /etc/init.d/nginx restart) I get:

Restarting nginx: nginx: [emerg] bind() to 0.0.0.0:80 failed (98:
Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] still could not bind()
nginx.

If I stop the server, it seems successful, but if I run the command
"lsof -i :80" as root I see:

COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
nginx 2801 root 6u IPv4 7489 0t0 TCP *:www (LISTEN)
nginx 2802 nobody 6u IPv4 7489 0t0 TCP *:www (LISTEN)

If I manually kill the nginx process and then start it, it works but
does NOT take into account any changes I've made to my configuration
files. So far, I seem completely unable to make any changes to my
configuration work. Even removing default from sites-enabled did
nothing.

At this point I'm so frustrated I'm close to heaving my computer out a
window. Any ideas?!

--
Posted via http://www.ruby-forum.com/.

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Nginx won't stop

Matthew M. December 06, 2011 07:32PM

Re: Nginx won't stop

Edho Arief December 06, 2011 10:22PM

Re: Nginx won't stop

Matthew M. December 06, 2011 11:40PM

Re: Nginx won't stop

Edho Arief December 06, 2011 11:48PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 197
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