1. 運行 tzselect
依次選擇 Asia -> China -> Beijing Time
2. 複製文件到 /etc
下
sudo cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
3. 查看當前時間、時區
date -R
4. 同步網上時間
4.1 安裝 ntpdate
sudo apt install ntpdate
4.2 設置系統時間與網絡時間同步
sudo ntpdate cn.pool.ntp.org
5. 寫入硬件時間
sudo hwclock --systohc