Crontab在错误的时间执行任务

时间:2019-05-20 17:44:43

标签: cron centos centos6

我正在使用Centos 6crontab运行计划的任务,并且在crontab中设置了此任务

TZ=UTC
* * * * * /usr/bin/wget --spider Command >/dev/null 2>&1
* * * * * /usr/bin/wget --spider Command >/dev/null 2>&1
* * * * * /usr/bin/wget --spider Command >/dev/null 2>&1
00 13 * * * /usr/bin/wget --spider Command >/dev/null 2>&1
00 12 * * * /usr/bin/wget --spider Command >/dev/null 2>&1
00 * * * * /usr/bin/wget --spider Command >/dev/null 2>&1
00 08 * * * /usr/bin/wget --spider Command  >/dev/null 2>&1  // This Command run in wrong time
00 08 * * 0,6 /usr/bin/wget --spider Command >/dev/null 2>&1
00 08 01 * * /usr/bin/wget --spider Command >/dev/null 2>&1
00 13 * * * /usr/bin/wget --spider Command >/dev/null 2>&1
*/30 * * * * /usr/bin/wget --spider Command >/dev/null 2>&1
0 1-23/2 * * * service httpd restart >/dev/null 2>&1

在第8行,我尝试每天在'08:00 AM'运行命令,并且它每小时在xx:29运行,我不知道为什么会发生。

我同步硬件时间,使用ntp日期,重新启动,重新启动crond,将cron格式从00 08 * * *更改为0 8 * * *,然后重新安装cronie,但仍在错误的时间运行

0 个答案:

没有答案