推荐日常维护方式

正常配置完成以后,基本不需要人工续期。

偶尔可以执行:

sudo certbot certificates

查看证书有效期。

如果需要确认续期是否正常:

sudo certbot renew --dry-run

如果需要手动触发正常续期:

sudo certbot renew

如果续期出现端口占用(适用于 standalone 模式证书)

sudo certbot certificates
sudo systemctl stop nginx
sudo certbot renew
sudo systemctl start nginx
sudo systemctl reload nginx

日常最常用的命令实际上只有:

sudo certbot --nginx \
  -d YOUR_DOMAIN.com \
  --email YOUR_EMAIL@example.com \
  --agree-tos

sudo certbot certificates

sudo certbot renew --dry-run

sudo certbot renew

作者:Joseph Lee  创建时间:2026-08-13 17:20
最后编辑:Joseph Lee  更新时间:2026-08-14 09:23