npt时间服务

309 阅读1分钟

npt时间服务

服务端安装软件

yum  install ntp -y

修改配置 /etc/ntp.conf

image.png

开启服务

systemctl start ntpd

ntpq -p #检查

客户端的hosts配置中添加服务端的 IP 和 主机名

同步时间

ntpdata client(client服务端主机名)