certbot 自动续期
装 certbot 时它一般会自动加一个 systemd timer 或 cron 任务,用 systemctl list-timers | grep certbot 确认一下。
手动测试续期
certbot renew --dry-run
这个命令不会真的续期,只是模拟一遍,用来验证配置有没有问题。
注意
如果 80 端口被其他服务占用,standalone 模式会失败。可以临时停掉占用 80 的服务,或者改用 DNS 验证方式。
续期成功后记得 reload nginx 让新证书生效。