运行命令 certbot renew
强制更新命名 certbot renew --force-renew
如果出现如下情况
Attempting to renew cert from /etc/letsencrypt/renewal/www.example.com.conf produced an unexpected error: At least one of the required ports is already taken.. Skipping.
All renewal attempts failed. The following certs could not be renewed:
/etc/letsencrypt/live/www.example.com/fullchain.pem (failure)
1 renew failure(s), 0 parse failure(s)
先停掉nginx(如果开启的haproxy服务,停掉),再运行 certbot renew 命令,成功后再启动nginx或者haproxy。
Let's Encrypt部署参考
https://letsencrypt.readthedocs.io/en/latest/using.html