您的位置:首页 > 运维架构 > Linux

Linux 中使用 crontab 命令设置定时任务的方法

2018-02-25 19:29 901 查看
首先查看一下/etc/crontab文件:

$ cat /etc/crontab
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
HOME=/


需要定时启动啥任务就往上写啥

写完了就妥了

更多的参考资料

1、在线Crontab表达式执行时间验证 / crontab执行时间计算 - aTool在线工具

http://www.atool.org/crontab.php

2、Linux 设置定时任务crontab命令

https://www.cnblogs.com/zoulongbin/p/6187238.html

3、 Linux定时任务Crontab详解

http://blog.chinaunix.net/uid-7552018-id-182133.html

4、Linux Crontab 定时任务 命令详解

https://www.linuxidc.com/Linux/2016-02/128323.htm
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: