1.删除自带的localtime
rm -rf /etc/localtime
2.创建软链接到localtime
ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
3.安装ntpdate
sudo apt install ntpdate
ntpdate -u ntp.api.bz
rm -rf /etc/localtime
ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
sudo apt install ntpdate
ntpdate -u ntp.api.bz