Author: rgrz
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?
I killed everything running on port 80…
$ sudo fuser -k 80/tcp 80/tcp: 3488 3489 3490
after that nginx started normally…
sudo systemctl start nginx
sudo systemctl start nginx
sudo systemctl status nginx.service
sudo nginx -t
You should see something like this after running –
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful