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
+4.2k PHP : Convert CSV to JSON with YQL example
+9k Golang : How to unmarshal JSON inner/nested value and assign to specific struct?
+7.1k Golang : Combine slices but preserve order example
+5k Golang : How to determine if request or crawl is from Google robots
+6.8k Golang: Prevent over writing file with md5 hash
+9.3k Use systeminfo to find out installed Windows Hotfix(s) or updates
+10k Swift : Convert (cast) Float to String
+3.3k Linux/MacOSX : Search and delete files by extension
+11.4k Golang : Read XML elements data with xml.CharData example
+23k Golang : Convert uint value to string type
+4.7k Golang : Detect face in uploaded photo like GPlus
+12.4k Golang : GUI with Qt and OpenCV to capture image from camera