crontab -l 查看定时任务
crontab -e 编辑定时任务
注:编辑过后可以不重启,但可能会有2分钟的延误,立即重启可以马上执行定时任务。
查看crond是否开启:
/sbin/service crond status
开启、停止、重启:
/sbin/service crond start
/sbin/service crond stop
/sbin/service crond restart
关于定时任务的编辑:
参考:https://www.runoob.com/linux/linux-comm-crontab.html
注:%,需要转义
相关文章:linux cron 定时任务