1. 安装ntpdate
yum install -y ntpdate

2.设置本机时区
/usr/bin/timedatectl set-timezone Asia/Shanghai

3.设置crontab定时更新
crontab -e
    */10 * * * * /usr/sbin/ntpdate time.nist.gov

4.备用时间服务器有:
time.nist.gov
time.nuri.net
asia.pool.ntp.org
asia.pool.ntp.org
asia.pool.ntp.org
asia.pool.ntp.org
---------------------
作者:0x88
来源:CSDN
原文:https://blog.csdn.net/leeshunpeng/article/details/80363328
版权声明:本文为博主原创文章,转载请附上博文链接!

相关文章:

  • 2021-11-30
  • 2021-12-10
  • 2022-12-23
  • 2021-06-26
  • 2021-07-23
  • 2022-01-22
猜你喜欢
  • 2021-06-29
  • 2022-12-23
  • 2021-12-15
  • 2021-07-25
  • 2021-12-07
  • 2021-06-09
相关资源
相似解决方案