Jack Posted May 18 Share Posted May 18 (edited) -------------------- 時區 -------------------- 瀏覽目前的時區 timedatectl 更改時區 sudo timedatectl set-timezone Asia/Shanghai 再次瀏覽目前的時區 timedatectl 已經修改為 +8 時區 Time zone: Asia/Shanghai (CST, +0800) -------------------- 同步時間 -------------------- sudo apt install systemd-timesyncd vi /etc/systemd/timesyncd.conf 加入這一行 NTP=pool.ntp.org 0.asia.pool.ntp.org 1.asia.pool.ntp.org 2.asia.pool.ntp.org 儲存並離開 :wq 重新啟動 systemctl restart systemd-timesyncd timedatectl show-timesync --all timedatectl set-ntp true 瀏覽狀態 timedatectl timesync-status 瀏覽目前的時區時間 timedatectl 幾時幾分幾秒,都正常了 Edited May 18 by Jack Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now