返回顶部

Centos7修改系统时区

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

posted @ 2019-04-09 15:36  御用闲人  阅读(1325)  评论(0编辑  收藏  举报