定时-crontab
作者:
高山之水 | 来源:发表于
2018-02-06 21:54 被阅读0次/crond start //启动服务
/sbin/service crond stop //关闭服务
/sbin/service crond restart //重启服务
/sbin/service crond reload //重新载入配置</pre>
service crond status
service crond start
查看crontab服务是否已设置为开机启动,执行命令:
ntsysv
加入开机自动启动:
chkconfig -level 35 crond on
定制脚本
crontab -e
相当于vim
文档加入
0 1 * * * root /data/bakdb.sh > /data/bak.log 2>&1
0 0 * * * /opt/com.wuxinvip.blog/git_pull.sh
*/2 * * * * /bin/bash -x /shell/web_monit/http_monit.sh > /dev/null 2>&1
查看定时任务
crontab -u root -l
本文标题:定时-crontab
本文链接:https://www.haomeiwen.com/subject/spelaxtx.html
网友评论