Step 1: 下載檔案
sudo apt-get install ntp
Step 2: 修改設定檔案
sudo mv /etc/ntp.conf /etc/ntp.conf.d
sudo nano /etc/ntp.conf
server xxx.xxx.xxx.xxx
Step 3: 重啟
sudo service ntp restart
Step 4: 修改TimeZoNe
sudo cp /usr/share/zoneinfo/Asia/Taipei /etc/localtime
sudo cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
Step 3: 確認
sudo ntpq -p
timedatectl status
date