发布于2024年5月18日5月18日 -------------------- 時區 -------------------- 瀏覽目前的時區 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 幾時幾分幾秒,都正常了 本帖最后于2024年5月18日5月18日,由Jack编辑
创建帐户或登录后发表意见