yum install -y ntpdate

同步网络时间

ntpdate 0.asia.pool.ntp.org
若上面的时间服务器不可用,也可以改用如下服务器进行同步:
time.nist.gov
time.nuri.net
0.asia.pool.ntp.org
1.asia.pool.ntp.org
2.asia.pool.ntp.org
3.asia.pool.ntp.org

最后执行如下命令将系统时间同步到硬件,防止系统重启后时间被还原

hwclock --systohc

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-30
  • 2021-10-04
  • 2021-12-20
  • 2022-12-23
猜你喜欢
  • 2021-05-20
  • 2022-12-23
  • 2022-02-08
  • 2021-07-20
  • 2021-07-31
  • 2022-01-09
  • 2022-12-23
相关资源
相似解决方案