转自: blog.csdn.net/bloong/article/details/52314296

一、 安装ntpdate
   apt-get install ntpdate
二、选择其中一个服务器更新系统时间

$ sudo ntpdate ntp.ubuntu.com
$ sudo ntpdate pool.ntp.org
$ sudo ntpdate de.pool.ntp.org
       $ sudo ntpdate us.pool.ntp.org

三、设定自动更新周期
设定crontab计划任务
写在/etc/crontab里
10 5    * * *   root    ntpdate -dv ntp.ubuntu.com ; hwclock -w 
linux 时间自动更新

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-15
  • 2022-12-23
  • 2022-03-07
  • 2022-12-23
  • 2022-01-24
猜你喜欢
  • 2021-07-31
  • 2022-12-23
  • 2022-12-23
  • 2021-05-20
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案