1、安装ntpdate工具
#CentOS 7
sudo yum -y install ntp ntpdate
#CentOS 8
rpm -ivh http://mirrors.wlnmp.com/centos/wlnmp-release-centos.noarch.rpm
yum install wntp
#Ubuntu
sudo apt-get -y install ntp ntpdate
#CentOS 7
sudo yum -y install ntp ntpdate
#CentOS 8
rpm -ivh http://mirrors.wlnmp.com/centos/wlnmp-release-centos.noarch.rpm
yum install wntp
#Ubuntu
sudo apt-get -y install ntp ntpdate