【发布时间】:2019-01-23 11:59:54
【问题描述】:
所以我正在运行 EC2 Ubuntu,我最近将实例的时区(使用 tzselect)更改为 GTM -03,因为这是我的当地时间,然后我检查了 /etc/crontab 并得到:
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
# m h dom mon dow user command
17 * * * * root cd / && run-parts --report /etc/cron.hourly
25 6 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
47 6 * * 7 root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly )
52 6 1 * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly )
根据我读到的内容,这应该意味着每天早上 6.25 运行,但我似乎不喜欢。如果此时间适用于实例的时区,则加上 idk。
没有 /etc/anacron 文件。
【问题讨论】:
标签: ubuntu amazon-ec2 cron