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
+18.2k Golang : Find IP address from string
+9.2k Golang : Get all countries currencies code in JSON format
+7.7k Golang : Check from web if Go application is running or not
+9.2k Golang : Accessing content anonymously with Tor
+54.8k Golang : Unmarshal JSON from http response
+11.1k Android Studio : Create custom icons for your application example
+5.7k Golang : Generate multiplication table from an integer example
+19.4k Golang : Set or Add HTTP Request Headers
+19.6k Golang : Accept input from user with fmt.Scanf skipped white spaces and how to fix it
+5.1k Unix/Linux : How to archive and compress entire directory ?
+16.3k Golang : Merge video(OpenCV) and audio(PortAudio) into a mp4 file
+5.3k Python : Print unicode escape characters and string