CertBot 更新证书失败解决
一般就是nginx还开着的问题。我之前是把启动nginx对应的81端口的进程都kill掉。现在发现多个域名更新时,还有一个域名不行。
因此解决办法,关掉当前所有的nginx进程。
service nginx stop
注意启动CertBot若出现下列错误:
Another instance of Certbot is already running.
则使用下面的指令关闭当前运行的Certbot进程。
sudo find / -type f -name ".certbot.lock" -exec rm {} \;
然后再执行指令。
certbot renew --force-renewal
这次就成功了。