安装NTP服务器
#apt install -y ntp
# dpkg --get-selections ntp [Can be used to confirm NTP is installed]
# dpkg -s ntp [Can also be used to confirm NTP is installed]
配置NTP服务器
#vim /etc/ntp.conf
...
pool ntp7.aliyun.com iburst //阿里云
pool cn.ntp.org.cn iburst //中国
pool edu.ntp.org.cn iburst //中国教育网
pool hk.ntp.org.cn iburst //中国香港
pool jp.ntp.org.cn iburst //日本
...
重启 NTP
#systemctl restart ntp
完成~
原文:https://blog.51cto.com/14386969/2544450