好的,阿杰 😊 我来整理一下 国内常用 NTP 时间同步服务器及其 IP 地址,方便你在 Linux、Windows 或网络设备中配置使用。
一、国家授时中心(推荐,权威)
- 中国国家授时中心(西安)
ntp.ntsc.ac.cn
210.72.145.44
202.112.10.36
114.118.7.163
- 国家授时中心(备用)
time1.ntsc.ac.cn
→210.72.145.44
time2.ntsc.ac.cn
→210.72.145.44
二、运营商公共 NTP 服务器
- 中国电信
ntp1.ct.com.cn
→202.108.6.95
ntp2.ct.com.cn
→202.112.29.82
- 中国联通
ntp1.unicom.cn
→210.72.145.44
ntp2.unicom.cn
→202.112.10.36
- 中国移动
ntp1.cmcc.cn
→211.137.191.26
ntp2.cmcc.cn
→211.137.191.27
三、公共 NTP 服务(国内可用)
- 阿里云
ntp.aliyun.com
203.107.6.88
- 腾讯云
ntp.tencent.com
182.254.116.116
- 华为云
ntp.huaweicloud.com
114.116.46.50
四、全球公共 NTP 池(国内也可用)
cn.pool.ntp.org
(自动分配国内最近可用服务器)0.cn.pool.ntp.org
1.cn.pool.ntp.org
2.cn.pool.ntp.org
3.cn.pool.ntp.org
五、Linux 使用示例
# 临时同步一次
ntpdate ntp.aliyun.com
# 配置到 ntp.conf(长期生效)
server ntp.aliyun.com
server ntp.tencent.com
server ntp.ntsc.ac.cn
好嘞,阿杰 👍 我来帮你整理一个 常见操作系统和网络设备 NTP 配置命令大全,配合上面推荐的国内 NTP 服务器,你可以直接用。
🔹 一、Linux 系统
1. 使用 ntpdate
(一次性同步)
# 安装 ntpdate(部分系统已内置)
sudo apt install ntpdate # Ubuntu/Debian
sudo yum install ntpdate # CentOS/RHEL
# 立即同步
sudo ntpdate ntp.aliyun.com
2. 使用 chrony
(推荐,现代发行版)
配置文件路径:/etc/chrony/chrony.conf
server ntp.aliyun.com iburst
server ntp.tencent.com iburst
server ntp.ntsc.ac.cn iburst
重启服务:
sudo systemctl restart chronyd
sudo chronyc sources -v # 查看同步状态
3. 使用 ntpd
(传统方案)
配置文件路径:/etc/ntp.conf
server ntp.aliyun.com
server ntp.tencent.com
server ntp.ntsc.ac.cn
重启服务:
sudo systemctl restart ntpd
ntpq -p # 查看同步状态
🔹 二、Windows 系统
1. 手动同步
w32tm /config /manualpeerlist:"ntp.aliyun.com ntp.tencent.com ntp.ntsc.ac.cn" /syncfromflags:manual /update
w32tm /resync
2. 查看当前同步源
w32tm /query /status
w32tm /query /peers
🔹 三、Cisco 路由器/交换机
# 设置 NTP 服务器
ntp server 203.107.6.88 # 阿里云
ntp server 182.254.116.116 # 腾讯云
ntp server 210.72.145.44 # 国家授时中心
# 查看同步状态
show ntp status
show ntp associations
🔹 四、华为设备(VRP 系统)
ntp-service enable
ntp-service unicast-server 203.107.6.88
ntp-service unicast-server 182.254.116.116
ntp-service unicast-server 210.72.145.44
display ntp-service status
🔹 五、Linux 容器(Docker)
如果容器内没有 NTP 客户端,可以直接挂载宿主机的时间:
docker run -d --name test --privileged -v /etc/localtime:/etc/localtime:ro centos:7
这样容器会和宿主机保持时间一致,而宿主机再通过 NTP 与外部同步。
✅ 建议:配置时 至少 3 台不同来源的服务器(比如阿里云 + 腾讯云 + 国家授时中心),这样就能避免某一台 NTP 不可用导致时钟漂移。
上面这张图就是 国内常用 NTP 服务器同步架构示意图 ✅
- 客户端A/B/C → 不同系统或设备(Linux / Windows / 路由器等)。
- 公共NTP服务器 → 阿里云、腾讯云、国家授时中心(常用地址:
203.107.6.88
、182.254.116.116
、210.72.145.44
)。 - 授时中心(Root) → 依赖 原子钟 / 北斗 / GPS,提供标准时间。
📌 这样客户端通过 NTP协议 从上层获取精准时间,保证服务器、数据库、日志的一致性。
要不要我再整理一份 可直接复制的 Linux/Windows 配置示例(用这些NTP地址同步时间)?
发表回复