CentOS中添加Crontab计划任务
2017-02-15 00:00
337 查看
摘要: Let‘s Encrypt证书认证成功后,添加进计划任务
这里记录两种方法:
###1、直接添加
###2、命令行添加
完成
这里记录两种方法:
###1、直接添加
# crontab -e #secu-tcs-agent monitor, install at Sat Feb 11 00:29:09 CST 2017 * * * * * /usr/local/sa/agent/secu-tcs-agent-mon-safe.sh /usr/local/sa/agent > /dev/null 2>&1 */1 * * * * /usr/local/qcloud/stargate/admin/start.sh > /dev/null 2>&1 & */20 * * * * /usr/sbin/ntpdate ntpupdate.tencentyun.com >/dev/null & #添加到这里就可以, 例:(每周六以root用户执行一次,/root/autorenewal.sh脚本,将日志写入/var/log/autorenewal.log需要先创建该文件) * * * * 6 root /root/autorenewal.sh >> /var/log/autorenewal.log 2>&1
###2、命令行添加
# echo '* * * * 6 root /root/autorenewal.sh >> /var/log/autorenewal.log 2>&1' >> /etc/crontab
完成
相关文章推荐
- centos crontab 计划任务 设置与查看
- CentOS下使用yum命令安装计划任务程序crontab
- 编辑crontab添加Linux计划任务
- centos添加计划任务
- CentOS下使用yum命令安装计划任务程序crontab
- centos7.2 利用crontab执行定时计划任务
- Centos 的计划任务 crontab
- centos(7.0) 上 crontab 计划任务
- centos7 计划任务 crontab的使用
- linux-centOS6.6下的crontab计划任务配置
- crontab 添加计划任务重定向文件使用日期命名
- centos 添加计划任务
- CentOS利用crontab执行计划任务
- Linux系统下使用crontab添加计划任务的方法
- CentOS下使用yum命令安装计划任务程序crontab的方法
- CentOS下使用yum命令安装计划任务程序crontab
- centos7.0 crontab 的yii计划任务没有执行
- 【转载】CentOS中crontab定时计划任务的使用
- CentOS利用crontab执行计划任务
- centos编辑/etc/crontab加计划任务不生效问题