> For the complete documentation index, see [llms.txt](https://docs.verge.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.verge.io/run-the-platform/zh/xi-tong-guan-li/time-settings.md).

# 时间设置

查看并更改 VergeOS 同步系统时间的方式：NTP（默认）或 PTP。内容包括默认服务器、节点行为、同步状态以及更改 NTP 服务器。

时间设置控制 VergeOS 如何同步系统时间。默认的 NTP 模式适用于几乎所有系统。仅在使用内部 NTP 服务器或使用 PTP 时才更改这些设置。

## 概述

### 您将学到什么

* VergeOS 默认如何同步时间
* 如何查看每个节点的同步状态
* 如何更改 NTP 服务器
* 何时使用 PTP 模式

### 您需要什么

* VergeOS 26.2 或更高版本
* 具有系统管理员权限的用户

{% hint style="info" %}
**时区**

系统时区不是时间设置。请在 **时区** 字段中设置，位于 **系统 > 设置**。参见 [系统设置](/run-the-platform/zh/xi-tong-guan-li/settings-overview.md).
{% endhint %}

## VergeOS 如何同步时间

VergeOS 默认使用 NTP（网络时间协议）。安装程序会配置以下公共服务器： `0.pool.ntp.org 1.pool.ntp.org 2.pool.ntp.org 3.pool.ntp.org`.

节点 1 与 NTP 服务器同步。所有其他节点通过核心网络与节点 1 同步。只有节点 1 需要访问外部 NTP 服务器。

## 查看时间同步状态

1. 导航到 **系统 > 时间设置**.

该页面显示两个面板：

* **NTP 配置**：当前模式和设置。
* **NTP 同步状态**：每个节点的状态、其时间源以及上次检查的时间。

每个节点都会显示 **已同步** ，当其已同步时。节点 1 显示公共服务器作为其来源。其他节点显示节点 1 的核心网络地址。当某个节点不同步超过两分钟时，VergeOS 会发出警报。

## 更改 NTP 服务器

当您的网络阻止公共 NTP，或您的组织要求使用内部时间服务器时，请更改 NTP 服务器。

{% hint style="warning" %}
在提交更改之前，请确保节点 1 可以连接到新服务器。如果节点 1 无法连接到任何服务器，系统就没有时间源。
{% endhint %}

1. 导航到 **系统 > 时间设置**.
2. 点击 **编辑设置** ，位于左侧菜单中。
3. 在 **NTP 服务器** 字段中，输入服务器名称或 IP 地址，并用空格分隔。例如： `ntp1.example.com ntp2.example.com`.
4. 点击 **提交**.

该 **NTP 配置** 面板显示新服务器。稍后，每个节点都会在 **已同步** 中显示 **NTP 同步状态** 面板。

### NTP 设置参考

| 字段            | 默认值                                                           | 值               | 描述                              |
| ------------- | ------------------------------------------------------------- | --------------- | ------------------------------- |
| **模式**        | NTP                                                           | NTP、PTP         | 时间同步协议。                         |
| **NTP 服务器**   | `0.pool.ntp.org 1.pool.ntp.org 2.pool.ntp.org 3.pool.ntp.org` | 以空格分隔的名称或 IP 地址 | 节点 1 与之同步的服务器。                  |
| **NTP 最大时钟数** | 11                                                            | 1-255           | NTP 使用的最大时间源数量。请勿更改。            |
| **NTP 最小时钟数** | 4                                                             | 1-255           | NTP 尝试使用的最小时间源数量。请勿更改。          |
| **NTP 最小一致数** | 1                                                             | 1-255           | NTP 在设置时间之前必须达成一致的最小时间源数量。请勿更改。 |

请勿更改 **NTP 最大时钟数**, **NTP 最小时钟数**，或 **NTP 最小一致数** ，除非 VergeOS 支持人员告诉您这样做。

## PTP 模式

精确时间协议（PTP）比 NTP 提供更精确的时间。仅当以下所有条件都成立时才使用 PTP：

* 您的工作负载需要亚微秒级的时间精度。
* 您的网卡、交换机和布线支持 PTP。
* 您有一个 PTP 主时钟，并且知道其域、传输和延迟机制。

有关步骤和所有 PTP 设置，请参见 [在 VergeOS 中配置 PTP](https://app.gitbook.com/s/QZBMFpokMv2vWTIRbFzA/system-administration/configuring-ptp).

## 总结

VergeOS 默认使用 NTP 同步时间：节点 1 与外部服务器同步，所有其他节点与节点 1 同步。 **系统 > 时间设置** 页面显示每个节点的同步状态。

### 后续步骤

* [系统设置](/run-the-platform/zh/xi-tong-guan-li/settings-overview.md)
* [高级系统设置](/run-the-platform/zh/xi-tong-guan-li/advanced-system-settings.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.verge.io/run-the-platform/zh/xi-tong-guan-li/time-settings.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
