1 .什么是克隆
crond是linux为了执行定期任务而拥有的守护进程(服务)。
2 .服务命令行
查看crond状态service crond status
启动crond service crond start
停止crond service crond stop
重新启动crond service crond restart
3.cron命令行
crontab -e :编辑当前用户的配置文件
crontab -u指定用户-e :编辑指定用户的配置文件
crontab -l :显示计划任务列表
crontb -r :删除用户的调度任务
4 .创建计划任务的示例
a .格式规格(注意空格分隔) ) ) )。
*****command时分星期一命令行
b .取值范围
分钟:指定(0~59 )未指定(* ) ) ) ) )。
时:指定(0) 23 ) (未指定) * ) ) ) ) ) ) )时:指定(0) 23 ) ) ) ) ) ) ) 652 )
中:指定(1~31 )不指定(* ) )。
月:指定(1~12 )未指定(* ) )。
星期几:指定(0(6)未指定(* ) ) ) )。
5 .注意事项
a .用户最多可以有一个配置文件,位置/var/spool/cron/root (此处为用户名)
使用crontab file命令添加计划任务将复盖原始文件。 建议使用crontab -e进行更改,或者直接通过vi编辑/var/spool/cron/root (在此为用户名)配置文件进行更改