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
+29.5k Golang : JQuery AJAX post data to server and send data back to client example
+21k Golang : Underscore or snake_case to camel case example
+8.5k Your page has meta tags in the body instead of the head
+6.1k Fontello : How to load and use fonts?
+9.1k Golang : automatically figure out array length(size) with three dots
+8.4k Golang: Prevent over writing file with md5 hash
+7.8k Golang : Test if an input is an Armstrong number example
+11.6k CodeIgniter : Import Linkedin data
+7.4k Golang : Calculate how many weeks left to go in a given year
+17.9k Golang : Iterate linked list example
+15.7k Golang : Force download file example
+25.5k Golang : Convert long hexadecimal with strconv.ParseUint example