[root@localhost ~]# yum install -y ntpdate
已加载插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: mirror.bit.edu.cn
* extras: mirror.bit.edu.cn
* updates: mirror.bit.edu.cn
软件包 ntpdate-4.2.6p5-28.el7.centos.x86_64 已安装并且是最新版本
无须任何处理
[root@localhost ~]# ntpdate ntp1.aliyun.com
5 Jul 13:57:15 ntpdate[1763]: step time server 120.25.115.20 offset 137041.493870 sec
[root@localhost ~]# date
2018年 07月 05日 星期四 13:58:29 CST