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
+10.1k Golang : Text file editor (accept input from screen and save to file)
+4.9k Nginx and PageSpeed build from source CentOS example
+13.6k Golang : Activate web camera and broadcast out base64 encoded images
+4.7k JavaScript: Add marker function on Google Map
+35.9k Golang : Get file last modified date and time
+15.8k Golang : Get current time from the Internet time server(ntp) example
+4.7k MariaDB/MySQL : Form select statement or search query with Chinese characters
+7.5k Golang : Set horizontal, vertical scroll bars policies and disable interaction on Qt image
+18.9k Golang : Display list of time zones with GMT
+26.3k Golang : Get executable name behind process ID example
+5.4k Golang : Get S3 or CloudFront object or file information
+22.4k Golang : How to read JPG(JPEG), GIF and PNG files ?