nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
Not really a tutorial, but more about solving problem.
Problem : Try to start nginx after a hard reboot and got this error message
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
After some investigation, apparently it was caused by a process which is already using port 80.
Later on, I found out that it was caused by auto start of nginx.
To fix this problem, just stop nginx
service nginx stop
and restart nginx
service nginx start
this solved my problem. However,in case it is not caused by nginx. You can do this
sudo fuser -k 80/tcp
to kill the process that hogged port 80.
Oh! Before killing the process. Make sure you know which process it is first!
See also : Nginx + FastCGI + Go Setup.
By Adam Ng
IF you gain some knowledge or the information here solved your programming problem. Please consider donating to the less fortunate or some charities that you like. Apart from donation, planting trees, volunteering or reducing your carbon footprint will be great too.
Advertisement
Tutorials
+25.4k Golang : Convert uint value to string type
+6.2k Golang : Build new URL for named or registered route with Gorilla webtoolkit example
+19.5k Golang : Fix cannot download, $GOPATH not set error
+10.7k Fix ERROR 1045 (28000): Access denied for user 'root'@'ip-address' (using password: YES)
+13.7k Golang : Count number of runes in string
+13.6k Facebook PHP getUser() returns 0
+7.7k SSL : How to check if current certificate is sha1 or sha2 from command line
+14k Golang : Convert spaces to tabs and back to spaces example
+21.3k Golang : Get password from console input without echo or masked
+8.1k Golang : Grayscale Image
+6.9k Golang : Experimental emojis or emoticons icons programming language
+11.5k Golang : How to flush a channel before the end of program?