使用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"