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
+12.7k Android Studio : Highlight ImageButton when pressed on example
+16.9k Golang : Read integer from file into array
+7.7k Golang : Mapping Iban to Dunging alphabets
+36.6k Golang : Validate IP address
+22.5k Golang : How to read JPG(JPEG), GIF and PNG files ?
+11.2k CodeIgniter : How to check if a session exist in PHP?
+10.9k Golang : Get UDP client IP address and differentiate clients by port number
+33.7k Golang : All update packages with go get command
+12.1k Golang : Sort and reverse sort a slice of runes
+6.8k Golang : Experimental emojis or emoticons icons programming language
+22.7k Golang : Strings to lowercase and uppercase example
+14.3k Golang : Convert IP version 6 address to integer or decimal number