chrony服务部署

本文档详细介绍了如何部署Chrony服务,包括两台机器的配置:第一台从阿里云同步时间,作为时间源;第二台从第一台机器同步。步骤涉及安装Chrony、关闭防火墙与SELinux,以及验证配置的准确性。
摘要由CSDN通过智能技术生成

配置要求:

chrony服务部署:两台机器

a: 第一台机器从阿里云同步时间

第二台机器从第一台机器同步时间

b: 第一台服务器使用系统时间作为第二台服务器的时钟源, 第一台服务器层级设置为6



a:安装chrony,关闭防火墙与selinux

<code class="language-plaintext hljs">
yum -y install chrony
systemctl stop firewalld.service 
setenforce 0
</code>

 配置

<code class="language-plaintext hljs">
vim /etc/chrony.conf

#将原有的pool注释掉,并添加阿里云的时间服务器
#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
server ntp.aliyun.com iburst

#允许其它客户端连接到此台时钟服务器
allow all
</code>

 启动并验证是否配置正确

<code class="language-plaintext hljs">
systemctl st
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值