Server常用服务-NTP时间同步服务器
安装
使用yum -y install chrony 安装时间同步服务
配置
-
配置文件在 /etc/chrony.conf
- 修改 iburst 行,此行配置向谁索要时间数据
- 解开 allow x.x.x.x/xx 行,此行配置允许访问本时间服务器的IP
- 解开 local stratum 10 行,次行配置次时间服务器在第几层
- 重启服务
systemctl restart chronyd
客户端使用
-
修改 /etc/chrony.conf 文件
修改 iburst 行,地址设置为时间同步服务器的地址