agogd

昨天写了一脚本,放在crontab上,设定每天早上5点半执行。今天早上发现,没有脚本执行记录。

# service crond status  // 查看crontab 状态

#  tail -100 /var/log/cron   // 查看最近100条crontab日志 

发现是系统时间和crontab 日志时间不一致,慢了8个小时。

#  ntpdate us.pool.ntp.org               // 同步系统时间

cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

# service crond restart    // 重启crontab

# service rsyslog restart     // 重启 rsyslog

 

解决问题!~

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-11-25
  • 2022-02-02
  • 2021-11-03
  • 2021-11-03
  • 2021-10-22
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-27
  • 2021-10-06
  • 2022-01-24
相关资源
相似解决方案