首页 > 其他 > 详细

centos 修改时区以及修正时间

时间:2019-10-23 19:18:27      阅读:72      评论:0      收藏:0      [点我收藏+]

1、查看系统当前的时区

[app@127-0-0-1 shine]$ timedatectl
      Local time: Wed 2019-10-23 17:56:17 CST
  Universal time: Wed 2019-10-23 09:56:17 UTC
        RTC time: Wed 2019-10-23 17:56:15
       Time zone: Asia/Shanghai (CST, +0800)
     NTP enabled: yes
NTP synchronized: no
 RTC in local TZ: yes
      DST active: n/a

Warning: The system is configured to read the RTC time in the local time zone.
         This mode can not be fully supported. It will create various problems
         with time zone changes and daylight saving time adjustments. The RTC
         time is never updated, it relies on external facilities to maintain it.
         If at all possible, use RTC in UTC by calling
         ‘timedatectl set-local-rtc 0‘.
[app@127-0-0-1 shine]$ 

2、修改系统使用的时区

timedatectl set-timezone Asia/Shanghai 

3、时间不准确时校准时间

yum install -y ntpdate
ntpdate us.pool.ntp.org

  

centos 修改时区以及修正时间

原文:https://www.cnblogs.com/Small-sunshine/p/11727843.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!