CentOS-Stream-10 搭建NTP服务器(二)

客户端:

1.安装chrony。

bash 复制代码
yum install chrony -y
systemctl start chronyd
systemctl enable chronyd
systemctl status chronyd

2.配置文件中注释掉自带服务器同步地址,添加服务器端配置的地址。

bash 复制代码
#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 192.168.0.249 iburst

3.启用NTP。

bash 复制代码
systemctl restart chronyd
timedatectl set-ntp true

4.查看时间源。

bash 复制代码
chronyc sources -v

5.手动同步时间。

bash 复制代码
chronyc -a makestep

6.显示状态。

bash 复制代码
timedatectl
相关推荐
HappRobot2 小时前
OpenTelemetry和Jaeger、 SkyWalking的关系
linux·网络·skywalking
木卫二号Coding2 小时前
Linux-删除一级目录下子目录-github例子
linux·运维·github
津津有味道2 小时前
Python写入URI网址到Ntag 424 DNA标签配置开启动态UID计数器镜像
linux·python·nfc·动态uid·424·cma加密数据
虾..2 小时前
Linux 信号的处理
linux·运维·服务器
Nautiluss2 小时前
一起调试XVF3800麦克风阵列(三)
linux·人工智能·嵌入式硬件·音频·语音识别·dsp开发·智能音箱
大聪明-PLUS2 小时前
如何在 Docker 中优化容器镜像大小
linux·嵌入式·arm·smarc
仰望星空的打工人2 小时前
雨云云应用部署frp
服务器·docker·容器
布史3 小时前
Linux软链接应用详解:从原理到实战案例
linux·运维·服务器
顶点多余3 小时前
linux的基本指令
linux·运维·服务器