chrony时间同步
服务端(192.168.0.10)
安装后启动即可
[root@localhost ~]# yum -y install chronyd
[root@localhost ~]# systemctl enable chronyd.service
[root@localhost ~]# systemctl restart chronyd.service
客户端(192.168.0.50)
[root@localhost ~]# vim /etc/chrony.conf
server 192.168.0.10 iburst ##配置同步服务端地址
#server 0.centos.pool.ntp.org iburst
#server 1.centos.pool.ntp.org iburst
#server 2.centos.pool.ntp.org iburst
#server 3.centos.pool.ntp.org iburst
[root@localhost ~]# systemctl enable chronyd.service
[root@localhost ~]# systemctl restart chronyd.service
[root@localhost ~]# chronyc sources -v #查看时间同步信息