1.安装ntp

yum -y install ntp


2.时间同步

ntpdate time.nist.gov


3.示例

CentOS时间同步_CentOS