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
相关推荐
楠奕14 小时前
CentOS7安装GoldenDB单机搭建及常见报错解决方案
linux·运维·服务器
GCTTTTTT15 小时前
远程服务器走本地代理
运维·服务器
剑锋所指,所向披靡!15 小时前
Linux常用指令(2)
linux·运维·服务器
做咩啊~15 小时前
6.增加一个flat网段
服务器·openstack
不愿透露姓名的大鹏15 小时前
Oracle归档日志爆满急救指南
linux·数据库·oracle·dba
W.W.H.15 小时前
嵌入式常见的面试题1
linux·网络·经验分享·网络协议·tcp/ip
木白CPP15 小时前
DMA-Buffer内核驱动API文档
linux
HXQ_晴天16 小时前
Linux 系统的交互式进程监控工具htop
linux·服务器·网络
song85816 小时前
韦东山开发手册阅读笔记(五)
linux
LIZhang201616 小时前
linux写一个脚本实时保存内存占用情况
linux·运维·服务器