Ubuntu修改NTP服务器地址

sudo su
echo "NTP=ntp.aliyun.com" >>/etc/systemd/timesyncd.conf
echo "PollIntervalMinSec=36000" >>/etc/systemd/timesyncd.conf
echo "PollIntervalMinSec=72000" >>/etc/systemd/timesyncd.conf
systemctl restart systemd-timesyncd.service
timedatectl timesync-status

你可能感兴趣的:(Ubuntu修改NTP服务器地址)