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

推荐订阅源

D
DataBreaches.Net
IT之家
IT之家
The Cloudflare Blog
Apple Machine Learning Research
Apple Machine Learning Research
WordPress大学
WordPress大学
N
Netflix TechBlog - Medium
阮一峰的网络日志
阮一峰的网络日志
P
Proofpoint News Feed
L
LangChain Blog
博客园 - Franky
美团技术团队
J
Java Code Geeks
Microsoft Security Blog
Microsoft Security Blog
博客园 - 叶小钗
小众软件
小众软件
Y
Y Combinator Blog
B
Blog RSS Feed
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
D
Docker
Hugging Face - Blog
Hugging Face - Blog
Jina AI
Jina AI
罗磊的独立博客
大猫的无限游戏
大猫的无限游戏
Vercel News
Vercel News

博客园 - 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)  评论()    收藏  举报