1、yum 安装
[root@localhost ~]# yum install ntp ntpdate -y
[root@localhost ~]# systemctl start ntpd.service
2、客户端
[root@localhost ~]# ntpdate *.*.*.*
ntpdate *.*.*.* #ntp服务器的IP地址
cm920 2020-05-08 11:20 原文
1、yum 安装
[root@localhost ~]# yum install ntp ntpdate -y
[root@localhost ~]# systemctl start ntpd.service
2、客户端
[root@localhost ~]# ntpdate *.*.*.*
ntpdate *.*.*.* #ntp服务器的IP地址