Install Config Wiki

All about installing, configuring and troubleshooting

User Tools

Site Tools


nginx_emerg_bind_80_failed_98_address_already_use

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
nginx_emerg_bind_80_failed_98_address_already_use [2020/06/16 22:43] – [This fixed the problem that Nginx would not start or reload] wikiadminnginx_emerg_bind_80_failed_98_address_already_use [2020/06/17 17:32] – [To Check the Status of Nginx and changed .conf before running Reload] wikiadmin
Line 6: Line 6:
 Author: rgrz Author: rgrz
  
-<blockquote>Ok, now this is weird. I am pretty sure nginx service was stopped. And I don’t have apache or anything running on the server that could use port 80… Could it have been that nginx left some resource that kept port 80 busy while certbot reconfigured/restarted the server? </blockquote>+Ok, now this is weird. I am pretty sure nginx service was stopped. And I don’t have apache or anything running on the server that could use port 80… Could it have been that nginx left some resource that kept port 80 busy while certbot reconfigured/restarted the server? 
  
-<blockquote>I killed everything running on port 80… </blockquote>+I killed everything running on port 80… 
  
 <code>$ sudo fuser -k 80/tcp <code>$ sudo fuser -k 80/tcp
 80/tcp: 3488 3489 3490 </code> 80/tcp: 3488 3489 3490 </code>
  
-<blockquote>after that nginx started normally…</blockquote>+after that nginx started normally…
  
 ==== The answer was provided by rgrz on February 2018 at the following source: ==== ==== The answer was provided by rgrz on February 2018 at the following source: ====
Line 19: Line 19:
 [[https://community.letsencrypt.org/t/nginx-emerg-bind-to-80-failed-98-address-already-in-use/52914/2]] [[https://community.letsencrypt.org/t/nginx-emerg-bind-to-80-failed-98-address-already-in-use/52914/2]]
  
-==== To Restart Nginx ====+==== To Start Nginx ====
 <code>sudo systemctl start nginx</code> <code>sudo systemctl start nginx</code>
  
Line 26: Line 26:
  
 ==== To Check the Status of Nginx ==== ==== To Check the Status of Nginx ====
-<code>sudo systemctl status nginx</code>+<code>sudo systemctl status nginx.service</code
 + 
 +==== To Check the Status of Nginx after changes are made to nginx block files (.conf files) and before a Reload of Nginx ==== 
 + 
 +<code>sudo nginx -t</code> 
 + 
 +You should see something like this after running -- 
 + 
 +<QUOTE>nginx: the configuration file /etc/nginx/nginx.conf syntax is ok 
 + 
 +nginx: configuration file /etc/nginx/nginx.conf test is successful</QUOTE>
  
nginx_emerg_bind_80_failed_98_address_already_use.txt · Last modified: 2020/06/17 17:33 by wikiadmin