zl程序教程

您现在的位置是:首页 >  系统

当前栏目

CentOS 7配置Chrony服务

2023-09-11 14:20:23 时间

Chrony

服务器

yum isntall chronyd.service #安装服务
vim /etc/chrony.conf        #修改配置文件
看图操作

​
[root@localhost ~]# firewall-cmd --permanent --add-port=123/udp     #放行防火墙
success
[root@localhost ~]# firewall-cmd --reload
success
[root@localhost ~]# systemctl restart chronyd.service               #重启服务

客户端

yum isntall chronyd.service #安装服务
vim /etc/chrony.conf        #修改配置文件
看图操作

[root@localhost ~]# chronyc     #查看同步结果
chrony version 3.2
Copyright (C) 1997-2003, 2007, 2009-2017 Richard P. Curnow and others
chrony comes with ABSOLUTELY NO WARRANTY.  This is free software, and
you are welcome to redistribute it under certain conditions.  See the
GNU General Public License version 2 for details.
​
chronyc> sources
210 Number of sources = 1
MS Name/IP address         Stratum Poll Reach LastRx Last sample
===============================================================================
^* 192.168.99.2                 10   6   377    47    -11us[ -107us] +/-  160us
chronyc>