yum -y install ntp ntpdate #安装ntpdate时间同步工具 ntpdate cn.pool.ntp.org #设置时间同步 hwclock --systohc #将系统时间写入硬件时间 timedatectl #查看系统时间
CentOS7 设置集群时间同步
原文:https://www.cnblogs.com/lenmom/p/10348150.html