方法一:(推荐) 设置NTP自动同步时间 yum install -y ntp systemctl start ntpd.service #ntpd服务启动 systemctl enable ntpd.service #启动开机自启 其他机器同步ntp服务器的时间 [root@lb01 ~]# hostname -I 172.16.1.5 [root@lb01 ~]# yum install ntpdate -y [root@lb01 ~]# date -s '20081024' [root@lb01 ~]# ntpdate 172.16.1.61