Ntp installation tools:
yum -y install ntp ntpdate
Setting time synchronization
ntpdate cn.ntp.org.cn
The system time to write hardware time
hwclock --systohc
Ali cloud sync configuration ntp time server
vi /etc/ntp.conf
server ntp1.aliyun.com
server ntp2.aliyun.com
server ntp3.aliyun.com
#server 0.centos.pool.ntp.org iburst
Start ntp server
service ntpd start
Configuring scheduled tasks, synchronization once every 5 minutes
$ crontab -e
*/5 * * * * /usr/sbin/ntpdate ntp1.aliyun.com
Common NtpServer:
202.120.2.101 Shanghai Jiaotong University
cn.ntp.org.cn
ntp1.aliyun.com