定时任务
service crond start //启动服务
service crond stop //关闭服务
service crond restart //重启服务
service crond reload //重新载入配置
查看crontab服务状态:service crond status
手动启动crontab服务:service crond start
开机启动
chkconfig crond on
调度实例
* 1 * * * /opt/script/backup.sh :从1:0到1:59 每隔1分钟 执行
15 05 * * * /opt/script/backup.sh :05:15 执行
*/10 * * * * /opt/script/backup.sh :每隔10分 执行
0 17 * * 1 /opt/script/backup.sh :每周一的 17:00 执行
2 8-20/3 * * * /opt/script/backup.sh 8:02,11:02,14:02,17:02,20:02 执行