Linux教程

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

这篇关于linux/centos7/centos8免费配置https并自动续期的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!