转自: 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 时间自动更新

相关文章:

  • 2021-05-22
  • 2021-10-19
  • 2021-06-09
  • 2021-11-20
  • 2022-02-20
  • 2021-06-12
  • 2021-05-23
  • 2021-05-27
猜你喜欢
  • 2021-07-31
  • 2021-11-22
  • 2021-05-20
  • 2021-08-15
  • 2022-03-07
  • 2022-01-24
相关资源
相似解决方案