Linux本地时间和网络时间不同步,更新了之后,重启还会变回去。可以通过一下方法修改并保存。

1.  安装ntpdate工具

sudo apt-get install ntpdate

 2.  设置系统时间与网络时间同步

sudo ntpdate cn.pool.ntp.org

3.  将系统时间写入硬件时间

sudo hwclock --systohc

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-07-06
  • 2021-09-10
  • 2021-11-13
  • 2021-09-27
  • 2021-11-17
  • 2021-11-13
猜你喜欢
  • 2021-09-27
  • 2022-12-23
  • 2021-11-13
  • 2021-09-27
  • 2022-12-23
相关资源
相似解决方案