CentOS 7 設定時間同步


# timedatectl

假設沒和 ntp server 同步可以用下列指令使其同步

# timedatectl set-ntp yes


# timedatectl set-timezone Asia/Taipei

如果不要和 ntp server 同步,想要手動校正時間,請參考下面指令

# timedatectl set-ntp no
# timedatectl set-time [YYYY-MM-DD]
# timedatectl set-time [HH:MM:SS]

Leave a Reply

Your email address will not be published. Required fields are marked *


This site uses Akismet to reduce spam. Learn how your comment data is processed.