RHEL7配置NTP服务

1、安装ntp软件

# yum install chrony

2、编辑配置文件/etc/chrony.conf

server NTP服务器地址 iburst

3、允许某一网段进行时间同步(编辑/etc/chrony.conf)

allow 21.0.0.0/24

4、启动NTP服务

# systemctl enable chronyd.service
# systemctl start chronyd.service

5、测试同步

# chronyc sources

6、检查同步状态

#chronyc sources -v
#chronyc sourcestats -v

Comments are closed.