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
相关推荐
乱蜂朝王7 小时前
Ubuntu 20.04安装CUDA 11.8
linux·运维·ubuntu
梁洪飞8 小时前
clk学习
linux·arm开发·嵌入式硬件·arm
~光~~8 小时前
【嵌入式linux驱动——点亮led】基于鲁班猫4 rk3588s
linux·点灯·嵌入式linux驱动
yuanmenghao9 小时前
车载Linux 系统问题定位方法论与实战系列 - 车载 Linux 平台问题定位规范
linux·运维·服务器·网络·c++
vQAvXEsg9 小时前
基于遗传算法的电动汽车有序充放电优化探索
centos
qq_5895681010 小时前
centos6.8镜像源yum install不成功,无法通过镜像源下载的解决方式
linux·运维·centos
weixin_5160230711 小时前
linux下fcitx5拼音的安装
linux·运维·服务器
hunter145011 小时前
Linux 进程与计划任务
linux·运维·服务器
楼田莉子12 小时前
Linux学习之磁盘与Ext系列文件
linux·运维·服务器·c语言·学习
陌上花开缓缓归以12 小时前
linux 怎么模拟系统panic重启
linux·运维·服务器