Linux定时任务
什么是定时任务:
周期性的执行任务计划的软件,linux里定时任务常用软件有:Crond
使用定时任务软件,可以每天每小时按需求重复的执行一项工作
列如:备份,一般都是0点以后备份。用户访问量降低的时候
但是晚上太困了,所以需要写一个程序实现自动备份,然后让定时任务软件帮你执行
就像闹钟。。。
crontab -l 查看定时任务
crontab -e 编辑定时任务
crontab -r 删除定时任务(-i 但是需要确认,不过安全)
怎么用呢?
1.系统定时任务计划
2.用户定时任务计划










网友评论