/etc/crontab不执行

 开发环境计划任务不执行

计划任务格式:

# Example of job definition:
# .---------------- minute (0 - 59)
# |  .------------- hour (0 - 23)
# |  |  .---------- day of month (1 - 31)
# |  |  |  .------- month (1 - 12) OR jan,feb,mar,apr ...
# |  |  |  |  .---- day of week (0 - 6) (Sunday=0 or 7) OR sun,mon,tue,wed,thu,fri,sat
# |  |  |  |  |
# *  *  *  *  * user-name  command to be executed

  

 

检查:

1、确认格式

2、指定执行命令的用户

3、关闭selinux(开发环境就是未关闭

 

如果以上几点仍然无法解决

请查看日志:/var/log/cron

根据日志的错误信息进行纠错

posted @ 2020-07-28 17:42  摔锅锅  阅读(621)  评论(0编辑  收藏  举报