linux设置crontab定时任务

操作步骤

1、查看定时器任务

# crontab –l

2、编辑定时器任务

# crontab –e

3、保存定时任务

(1)按住esc退出

(2)按住shif,再按冒号':wq' 显示如下  (:wq------保存并退出)

 

 4、重载crontab文件

# service cron reload

5、重启crontab服务

# service cron restart

 

posted @ 2020-09-01 22:00  好记随笔  阅读(170)  评论(0)    收藏  举报