1、查看时间各种状态:

timedatectl

Local time: 四 2014-12-25 10:52:10 CST
Universal time: 四 2014-12-25 02:52:10 UTC
RTC time: 四 2014-12-25 02:52:10
Timezone: Asia/Shanghai (CST, +0800)
NTP enabled: yes
NTP synchronized: yes
RTC in local TZ: no

2、 列出所有时区:

timedatectl list-timezones

3、将硬件时钟调整为与本地时钟一致, 0 为设置为 UTC 时间:

timedatectl set-local-rtc 1 

4、设置系统时区为上海:

timedatectl set-timezone Asia/Shanghai 

 

参考:

https://blog.csdn.net/superlover_/article/details/83655646

相关文章:

  • 2021-07-29
  • 2021-09-21
  • 2021-11-23
  • 2022-12-23
  • 2021-12-25
  • 2021-07-02
  • 2022-02-21
  • 2022-12-23
猜你喜欢
  • 2021-08-08
  • 2022-12-23
  • 2021-12-11
  • 2021-11-05
  • 2022-12-23
相关资源
相似解决方案