設定時區、安裝ntp伺服器
sudo timedatectl set-timezone Asia/Shanghai
sudo apt -y install ntp
ntp自帶配置夠用,無需修改,如果想更改執行:
sudo vi /etc/ntp.conf
改完重啟ntp服務:
sudo systemctl restart ntp
sudo timedatectl set-timezone Asia/Shanghai
sudo apt -y install ntp
ntp自帶配置夠用,無需修改,如果想更改執行:
sudo vi /etc/ntp.conf
改完重啟ntp服務:
sudo systemctl restart ntp