系统相关
首页 > 系统相关> > linux/centos7/centos8免费配置https并自动续期

linux/centos7/centos8免费配置https并自动续期

作者:互联网

安装免费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,然后删除某一行就完了

标签:crontab,centos7,nginx,https,linux,续期,certbot
来源: https://www.cnblogs.com/weakptr/p/15689592.html