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

推荐订阅源

Apple Machine Learning Research
Apple Machine Learning Research
J
Java Code Geeks
博客园 - 聂微东
Microsoft Azure Blog
Microsoft Azure Blog
量子位
T
Tailwind CSS Blog
Vercel News
Vercel News
I
InfoQ
Stack Overflow Blog
Stack Overflow Blog
U
Unit 42
Engineering at Meta
Engineering at Meta
L
LangChain Blog
大猫的无限游戏
大猫的无限游戏
D
Docker
博客园_首页
P
Proofpoint News Feed
月光博客
月光博客
T
The Blog of Author Tim Ferriss
MyScale Blog
MyScale Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
Martin Fowler
Martin Fowler
腾讯CDC
N
Netflix TechBlog - Medium
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More

博客园 - KLAPT

ROW_NUMBER() 一台服务器最大能支持多少条 TCP 连接 Gateway 网关 CodeX =>Skills Redis 内存满了怎么处理 SpringBoot 默认配置修改 JWT 续签 Access Token + Refresh Token 双 Token claudeCode 命令 MyBatis 的 Mapper 接口 AI | CC GUI 集成 IDEA 完整教程 在IDEA中使用Claude Code IDEA中使用CodeX MyBatisPlus解决大数据量查询慢问题 idea 中的 claude code Token Dubbo 和 Spring Cloud Gateway的区别 Transactional 注解中propagation 掌握 Spring 框架这 10 个扩展点 SpringBoot 快速实现 api 加密 Spring Boot/Cloud 中 bootstrap.yml 与 application.yml SpringBoot 实现 DOCX 转 PDF 微服务Token鉴权设计的几种方案 进程、线程、协程 RSA 加密 Java二维码 Chronyd与NTP chronyd 作为服务器时钟 chrony sudo命令和su 的区别 java -cp 和 java -jar
ntp服务端和客户端
KLAPT · 2026-02-08 · via 博客园 - KLAPT

1. 检查NTP服务端

systemctl status ntpd

2. 检查NTP客户端配置

cat /etc/ntp.conf

cat /etc/chrony/chrony.conf

3. 检查NTP服务是否安装

dpkg -l | grep ntp

dpkg -l | grep chrony

rpm -qa | grep ntp

rpm -qa | grep chrony

4. 检查NTP服务是否运行(通用方法)

ps aux | grep ntpd


ps aux | grep chronyd

  • 启动服务:systemctl start ntpd 或 systemctl start chronyd
  • 停止服务:systemctl stop ntpd 或 systemctl stop chronyd
  • 重启服务:systemctl restart ntpd 或 systemctl restart chronyd
  • 启用服务开机自启:systemctl enable ntpd 或 systemctl enable chronyd
  • 禁用服务开机自启:systemctl disable ntpd 或 systemctl disable chronyd

posted @ 2026-02-08 22:00  KLAPT  阅读(11)  评论()    收藏  举报