所有笔记基于-CentOS release 6.8 (Final)

 

ntpdate 202.120.2.101

同步上海时间

 

 

cp -f /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
overwrite `/etc/localtime'? y

把时区设置为上海

 

 

hwclock -w

把时间同步到硬件,即重启时间不会改变

 

相关文章:

  • 2021-07-18
  • 2022-12-23
  • 2021-11-21
  • 2022-01-04
  • 2021-09-08
  • 2021-09-16
  • 2022-12-23
猜你喜欢
  • 2021-07-18
  • 2021-12-20
  • 2021-12-11
  • 2022-12-23
  • 2021-12-09
  • 2021-12-20
相关资源
相似解决方案