中央論壇 - CENTER BBS
標題:
TimeZone setting (設定時區) - 以Ubuntu為例
[打印本頁]
作者:
死神
時間:
2015-9-4 11:20
標題:
TimeZone setting (設定時區) - 以Ubuntu為例
範例機:Ubuntu 14.04.2 LTS (on AWS)
1. 先用現代人的指令 tzconfig:
$ sudo tzconfig
複製代碼
結果發現
WARNING: the tzconfig command is deprecated, please use:
dpkg-reconfigure tzdata
複製代碼
所以就回到據說是古代人在用的指令:
$ sudo dpkg-reconfigure tzdata
複製代碼
進UI選一選,出來後 date 一下就驗證設定完成了~~(UTC -> CST)
本人是指做到這裡啦,其他流程還有
2.更換時區檔
$ sudo cp /usr/share/zoneinfo/Aisa/Taipei /etc/localtime
複製代碼
3. 對時,範例用 time.stdtime.gov.tw
$ sudo ntpdate time.stdtime.gov.tw
複製代碼
歡迎光臨 中央論壇 - CENTER BBS (https://www.centerbbs.com/)
Powered by Discuz! X3