Nginx won't stop
Matthew M.
lists at ruby-forum.com
Wed Dec 7 00:30:48 UTC 2011
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/.
More information about the nginx
mailing list