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:41] – [This fixed the problem that Nginx would not start or reload] 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 4: Line 4:
 ===== This fixed the problem that Nginx would not start or reload ===== ===== This fixed the problem that Nginx would not start or reload =====
  
-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?+Author: rgrz
  
-killed everything running on port 80…+Ok, now this is weird. 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? 
  
-$ sudo fuser -k 80/tcp +I killed everything running on port 80…  
-80/tcp: 3488 3489 3490+ 
 +<code>$ sudo fuser -k 80/tcp 
 +80/tcp: 3488 3489 3490 </code>
  
 after that nginx started normally… after that nginx started normally…
Line 17: 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 24: 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.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.1592347269.txt.gz · Last modified: 2020/06/16 22:41 by wikiadmin