惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Forbes - Security
Forbes - Security
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
F
Fortinet All Blogs
B
Blog
T
The Blog of Author Tim Ferriss
Engineering at Meta
Engineering at Meta
GbyAI
GbyAI
Y
Y Combinator Blog
Microsoft Azure Blog
Microsoft Azure Blog
L
LangChain Blog
Recent Announcements
Recent Announcements
U
Unit 42
Martin Fowler
Martin Fowler
M
MIT News - Artificial intelligence
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
The Register - Security
The Register - Security
Recorded Future
Recorded Future
C
Check Point Blog
V
V2EX
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Hugging Face - Blog
Hugging Face - Blog
WordPress大学
WordPress大学
Google DeepMind News
Google DeepMind News
酷 壳 – CoolShell
酷 壳 – CoolShell
F
Full Disclosure
小众软件
小众软件
A
About on SuperTechFans
云风的 BLOG
云风的 BLOG
宝玉的分享
宝玉的分享
Last Week in AI
Last Week in AI
有赞技术团队
有赞技术团队
MongoDB | Blog
MongoDB | Blog
爱范儿
爱范儿
P
Proofpoint News Feed
罗磊的独立博客
量子位
D
Docker
博客园_首页
D
DataBreaches.Net
Project Zero
Project Zero
博客园 - 司徒正美
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
博客园 - Franky
Security Latest
Security Latest
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
N
Netflix TechBlog - Medium
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
博客园 - 三生石上(FineUI控件)
H
Hackread – Cybersecurity News, Data Breaches, AI and More
大猫的无限游戏
大猫的无限游戏

codeqihan的博客

现代化的开源终端-Tabby 基于Rust开发的编辑器-Edit ChatGPT Atlas使用体验 联通宽带改桥接 电信跨网QoS ungoogled-chromium浏览器简介 npm的高性能替代品pnpm 使用markdownlint-cli格式化Markdown文件 Nginx的安装以及配置 使用unattended-upgrades自动更新软件包 Debian使用Backports源 压缩网页体积 Debian切换至Testing/Sid版本 2024年度总结 轻量级的探针-Beszel ai.robots.txt阻止AI爬虫 甲骨文圣何塞ARM测评 公共DOH收集 com又涨价了
Chrony安装以及配置
codeqihan · 2025-06-27 · via codeqihan的博客

简介

Chrony是一个开源的NTP实现,可同时充当客户端和服务器,用来保持主机时钟与互联网或局域网中的授时源精准同步。
Chrony相比ntpd的时间同步更准确,资源消耗也较低

安装

Debian/Ubuntu:

1
2
apt update
apt install chrony

安装完成后可以直接使用,如果想要修改配置文件,可以看下面

配置

Chrony安装完成后可以直接使用,可以通过chronyc sources查看当前的NTP服务器以及同步状态,如果想要修改Chrony配置文件,可以看下面:

编辑Chrony的配置文件:

1
vim /etc/chrony/chrony.conf

修改NTP服务器

如果想要添加或者修改Chrony的NTP服务器配置,可以修改配置文件中的时间服务器来实现

Chrony默认使用NTP Pool的NTP服务器池提供时间,例如:

1
pool 2.debian.pool.ntp.org iburst

可以通过修改配置文件以增加或修改NTP服务器,例如添加Apple的时间服务器(由于time.apple.com的服务器均由Apple维护,因此更推荐使用server而不是pool,如果解析包括不同人维护的NTP服务器,则建议使用pool

1
server time.apple.com iburst

配置文件修改完成后systemctl restart chronyd重启Chrony

评论