系統在安裝時,會需要選擇時區或由系統自行偵測,不過當使用vps或雲端伺服器時系統就會預設一個時區,這時需要自行修改時區。
可利用timedatectl來查詢目前時區:
[root@li1721-65 ~]# timedatectl status
Local time: Tue 2017-11-07 01:53:31 UTC
Universal time: Tue 2017-11-07 01:53:31 UTC
RTC time: n/a
Time zone: Etc/UTC (UTC, +0000)
NTP enabled: yes
NTP synchronized: yes
RTC in local TZ: no
DST active: n/a
查詢有那些時區可以使用: