nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
Today I’m facing the following error message after added custom module to nginx
root@ibnuyahya:~# sudo /etc/init.d/nginx restart * Stopping Web Server nginx [OK] * Starting Web Server 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()
solution?
check running pid
fuser -n tcp 80 80/tcp: 26621 26622
Kill
root@ibnuyahya:~# kill -9 26621 root@ibnuyahya:~# kill -9 26622
restart nginx
root@ibnuyahya:~# sudo /etc/init.d/nginx restart

Aaron 3:30 pm on December 25, 2011 Permalink |
you just solved 20 minutes of frustration for me, thank you.
ibnuyahya 4:57 pm on December 28, 2011 Permalink |
You are welcome. I’m glad to hear this notes helped you
.
Shane 6:42 pm on January 5, 2012 Permalink |
This uncovered an issue on our server, which turned out to screw everything up for me. Good thing it was at 4 in the morning : )
I ended up using this guide here to fix the additional issue:
http://www.webhostingtalk.com/showthread.php?t=1099802
Thanks!
Alvin Mites 12:04 am on February 9, 2012 Permalink |
Many thanks for sharing — was having the wrong site display when adding a new one to NGINX
kht 9:57 pm on March 2, 2012 Permalink |
Nice nice .. solved my problem with nginx
btw do you why thisc could happen?
thank