1、安装工具 ntpdate
执行命令 yum install -y ntpdate
2、访问ntp官方网站获取距离我们比较近的一个ntp作为参考,进行时间同步
例如
1.cn.pool.ntp.org
2.asia.pool.ntp.org
3.asia.pool.ntp.org
3、执行同步命令(所有虚拟机都需要执行)
ntpdate 1.cn.pool.ntp.org
1、安装工具 ntpdate
执行命令 yum install -y ntpdate
2、访问ntp官方网站获取距离我们比较近的一个ntp作为参考,进行时间同步
例如
1.cn.pool.ntp.org
2.asia.pool.ntp.org
3.asia.pool.ntp.org
3、执行同步命令(所有虚拟机都需要执行)
ntpdate 1.cn.pool.ntp.org