使用crontab自动续期
yum install vixie-cron crontabs //安装Crontab
chkconfig crond on //设为开机自启动
service crond start //启动
crontab -l //查看crontab定时执行任务列表
crontab -e //添加crontab定时执行任务
0 3 1 * * /root/certbot-auto renew –renew-hook "/etc/init.d/nginx reload"
参考https://blog.youkuaiyun.com/Trustauth/article/details/78423242
本文详细介绍了如何使用Crontab实现证书自动续期,包括Crontab的安装、设置开机自启动、启动服务、查看及添加定时执行任务的具体步骤。
1247

被折叠的 条评论
为什么被折叠?



