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
nginx_emerg_bind_80_failed_98_address_already_use [2020/06/16 22:45] – [To Check the Status of Nginx] wikiadminnginx_emerg_bind_80_failed_98_address_already_use [2020/06/17 17:33] (current) – [To Check the Status of Nginx after changes are made to nginx block files (.conf files) and before a Reload of Nginx] 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 27: Line 27:
 ==== To Check the Status of Nginx ==== ==== To Check the Status of Nginx ====
 <code>sudo systemctl status nginx.service</code> <code>sudo systemctl status nginx.service</code>
 +
 +==== To Check the Status of Nginx.conf after making changes to nginx webserver blocks (*.conf files) and before performing 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.1592347504.txt.gz · Last modified: 2020/06/16 22:45 by wikiadmin