> 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/nas/nas-service.md).

# 添加 NAS 服务

NAS 功能提供在 VergeOS 系统内按文件级别进行存储/访问。通过下载并实施标准 NAS VM 配方的一个实例，可以添加 NAS 功能。

## 实施 NAS VM 配方的一个实例

1. 在云仪表板中，选择 **NAS** 左侧菜单中的。
2. 选择 **NAS 服务** 左侧菜单中的。
3. 选择 **新建** 左侧菜单中的。
4. 如果该配方需要下载：将显示一条消息，其中包含下载链接； **点击链接下载** NAS VM 配方。选择 **下载** 从左侧菜单中。点击 **是** 按钮以确认下载此 VM 配方。下载进行中时，状态将显示为“Downloading”。下载完成后，状态将显示为“Online”，并且“Downloaded”复选框将显示为已勾选。
5. 输入一个 ***名称*** 用于新的 NAS 服务。

   <div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p>新的 NAS 服务将是一个 VM；因此，它不能使用同一 VergeOS 云中另一台 VM 正在使用的名称。</p></div>
6. 默认设置为 ***核心数*** 4；此设置适用于典型的通用 NAS 工作负载。大量防病毒操作和/或频繁的同步活动可能会影响核心需求。

   <div data-gb-custom-block data-tag="hint" data-style="success" class="hint hint-success"><p>NAS 服务资源需求可能涉及许多因素；如需指导，请咨询 VergeOS 实施服务或 VergeOS 支持。</p></div>
7. 默认设置为 ***内存*** 4 GB；此设置适用于典型的通用 NAS 工作负载。大量文件缓存操作可能会影响内存需求。
8. 系统定义的默认值 ***集群*** 会自动被选中。如有需要，可以选择不同的集群来运行 NAS 服务。
9. 选择 ***网络*** NAS 应在其上运行。
   * 选项将包括在此 VergeOS 云中定义的内部和外部网络。
10. 选择 ***IP 地址类型*** 用于 NAS 服务。选项包括 **DHCP** 和 **静态**
    * 如果 NAS 服务托管在 VergeOS 内部网络上，通常建议选择 DHCP，并在该网络的 IP 设置中为 NAS VM 定义一个静态 IP 地址。
    * 对于外部控制的网络，应根据该特定网络的因素选择静态或 DHCP。
    * 使用 DHCP 时，建议配置静态保留，以便 IP 地址保持不变。
    * 使用静态地址时，应注意避免与其他静态 IP 地址或 DHCP 租用范围冲突
    * 当 **静态** 被选中时， ***IP 地址***, ***网关***，并且 ***DNS 服务器列表*** 也应被指定。
11. 定义一个 ***主机名*** 用于 NAS 服务 VM 的主机名。（主机名默认为“nas”）

{% hint style="success" %}
**主机名提示：**

* 通常，最好将 *主机名* 和 *名称* 的值设为相同，以避免将来管理中的混淆。
* 当 NAS 服务加入 Windows AD 域时，该计算机对象将在 AD Computers and Users 中显示其主机名（而不是 NAS 名称）。
  {% endhint %}

12. 输入一个 ***域（可选）。*** CIFS/Samba 功能需要一个域。如果域字段留空，系统将默认将域设为“workgroup”。如果 NAS 服务将用于提供 CIFS 共享，则应指定正在使用的 AD 域。
13. ***时区*** 将默认为 VergeOS 云的默认时区。如有需要，可以为 NAS 服务定义不同的时区。
14. 通常， **默认** ***NTP 服务器*** 设置是推荐的。这定义了网络时间协议（NTP）服务器列表（用于保持 NAS 服务时间同步）。如有需要，可以覆盖默认 NTP 服务器列表，以明确指定要使用的 NTP 服务器列表。
15. （可选）输入 ***远程 Syslog 服务器的地址。***
16. （可选）输入一个 ***远程 Syslog 模板。***
17. 单击 **提交** 以保存设置并创建新的 NAS 服务。
18. 新的 NAS 现在将显示在 **NAS 服务列表**. **双击服务** 列表中的项目以打开该服务的仪表板。
19. 选择 **开机** 从左侧菜单中启动 NAS。
20. 单击 **是** 按钮以确认开机。
21. 要使用 NAS 服务，至少需要实现一个 **卷** 。下面提供了有关卷的信息以及教学页面的链接。

## 卷

NAS 服务将由一个或多个卷组成。每个卷都是一个独立的目录结构，具有自己的安全性、快照、存储层、最大大小、防病毒和共享设置。

* **本地卷** 是存储在 VergeOS 中的文件系统，并消耗 VergeOS vSAN 中的存储。

  参见 [**NAS 本地卷**](/run-the-platform/zh/nas/nas-local-volumes.md) 有关创建本地卷的说明。
* **远程卷** 是挂载到 VergeOS 系统并显示为本地的外部文件系统。

  参见 [**NAS 远程卷**](/run-the-platform/zh/nas/nas-remote-volumes.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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.verge.io/run-the-platform/zh/nas/nas-service.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
