1,修正本地时区及ntp服务


#yum -y install ntp
#rm -rf /etc/localtime
#ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
#/usr/sbin/ntpdate -u pool.ntp.org
2,自动同步时间
#添加下面一段
#表示每10分钟同步一次


#crontab -e
*/10 * * * * /usr/sbin/ntpdate -u pool.ntp.org >/dev/null 2>&1
#service crond restart

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-25
  • 2021-09-18
  • 2022-12-23
  • 2022-12-23
  • 2021-06-28
猜你喜欢
  • 2021-08-04
  • 2021-06-11
  • 2022-02-21
  • 2021-06-23
  • 2021-08-28
  • 2021-06-29
相关资源
相似解决方案