安装crontab
[root@CentOS ~]# yum install vixie-cron
[root@CentOS ~]# yum install crontabs
基本的指令
service crond start //启动服务
service crond stop //关闭服务
service crond restart //重启服务
service crond reload //重新载入配置
service crond status //运行状态
使用任务
#crontab -e 直接分配任务
执行的命令
0 * * * * (sh xx.sh)
解释:每一小时 执行一次xx脚本