1,确定at安装
  • chkconfig --list | grep atd

  • service atd restart

2at访问控制详解

系统管理——系统定时任务

3,at命令详解

系统管理——系统定时任务


二、crontab循环定时任务(用户手动,谁编辑,谁管理)

1,crond服务管理与访问控制
  • service crond restart

  • chkconfig crond on

    确认crontab安装并且运行

2,crontab服务访问控制

系统管理——系统定时任务

3,用户的crontab设置
  • crontab 选项
    -e 编辑crontab定时任务
    -l 查询crontab任务
    -r 删除当前用户所有的crontab任务
4,crontab解释

系统管理——系统定时任务

系统管理——系统定时任务

系统管理——系统定时任务

5,crontab注意事项

系统管理——系统定时任务


三,系统的crontab设置

  • crontab -e 是每个用户执行的命令,也就是说不同的用户身份可以执行自己的定时任务。
    可是有些定时任务需要系统执行,这时我们就需要编辑/etc/crontab这个配置文件了

四,anacron配置

  • anacron是用来保证在系统关机时候错过的定时任务,可以在系统开机之后再来执行
1,anacron检测周期

系统管理——系统定时任务

2,anacron配置文件

系统管理——系统定时任务

3,以cron.daily工作来说明执行过程

系统管理——系统定时任务

相关文章: