發表於2024年5月18日1年前 --------------------時區時間--------------------瀏覽目前的時區timedatectl更改時區timedatectl set-timezone Asia/Shanghai再次瀏覽目前的時區timedatectl已經修改為 +8 時區 Time zone: Asia/Shanghai (CST, +0800)--------------------同步時間--------------------apt install systemd-timesyncdvi /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-timesyncdtimedatectl show-timesync --alltimedatectl set-ntp true瀏覽狀態timedatectl timesync-status瀏覽目前的時區時間timedatectl在 +8 時區,幾時幾分幾秒,都正常了 本文章最後於6月10日6月10日,由Jack編輯
建立帳號或登入後發表意見