timedatectl status

  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

  DST active: n/a

 

设置时区的俩种方式:

  方式一:

    timedatectl set-timezone Asia/Shanghai

  方式二:

    cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

设置时钟自动同步

    yum -y install ntpdate

    ntpdate time.windows.com

相关文章:

  • 2021-07-13
  • 2022-03-04
  • 2021-08-02
  • 2022-12-23
  • 2022-12-23
  • 2021-12-21
  • 2021-06-26
  • 2021-12-04
猜你喜欢
  • 2021-09-21
  • 2021-08-22
  • 2022-12-23
  • 2021-07-15
  • 2022-12-23
  • 2022-12-23
  • 2021-11-15
相关资源
相似解决方案