CentOS7搭建时间服务器-chrony
系统:centos7 防火墙:关闭防火墙和selinux 软件:chrony centos6我们一直用的ntp时间服务器,虽然到CentOS7上也可以装ntp。但是各种问题。所以建议centos7使用chrony同步工具。 服务端配置: 1.安装chrony软件 [root@server ~]# yum install chrony -y 2.修改配置文件 [root@server ~]# vim /etc/chrony.conf server 0.centos.pool.ntp.org iburst #可以修改ntp的服务器。最好用国内的。 server 1.centos.pool.ntp.org iburst server 2.centos.pool.ntp.org iburst server 3.centos.pool.ntp.org iburst allow 172.19.150.0/24 #打开允许同步的IP 阿里ntp的服务器列表 time1.aliyun.com time2.aliyun.com time3.aliyun.com time4.aliyun.com time5.aliyun.com time6.aliyun.com time7.aliyun.com 3.启动、开机自启动、查看状态、查看同步源 [root@server ~]# systemctl