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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM