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.8k Fix fatal error: evacuation not done in time problem
+12.1k Golang : Read from buffered reader until specific number of bytes
+5.2k Golang : Detect face in uploaded photo like GPlus
+3.3k Golang : Converting individual Jawi alphabet to Rumi(Romanized) alphabet example
+8k Golang : Inject/embed Javascript before sending out to browser example
+4.8k Golang : Fix opencv.LoadHaarClassifierCascade The node does not represent a user object error
+8.3k Golang : Qt Yes No and Quit message box example
+32.3k Golang : All update packages with go get command
+14.1k Golang : Validate hostname
+13k Golang : ROT47 (Caesar cipher by 47 characters) example
+19.6k Golang : How to read float value from standard input ?
+9.8k Golang : Web routing/multiplex example