安装免费https证书并自动续期

  1. 安装certbot,centos7+nginx https://certbot.eff.org/instructions?ws=nginx&os=centosrhel7

  2. certbot --nginx #来配置nginx

  3. crontab -e # 创建定时任务

  4. 0 3 */7 * * certbot renew --renew-hook "nginx -s reload" # 写入到crontab -e命令中

如果要删除自动续期任务,直接crontab -e,然后删除某一行就完了

posted on 2021-12-14 19:25  你个死鬼  阅读(352)  评论(0编辑  收藏  举报