> For the complete documentation index, see [llms.txt](https://docs.prevps.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.prevps.com/documentation/documentation-zh/chan-pin/n8n-vps.md).

# n8n VPS

## n8n VPS

**订购：** <https://prevps.com/n8n-vps/>

### 相关指南

* [访问并设置您的 n8n VPS](broken://spaces/0FM6VP2ZFslcUB6DO7vm/pages/681ceec4d71110fffe6a3277a61d68f207814778)

### 用途说明

使用此方案托管 **n8n** 自动化在您自己的服务器上。

### 典型设置（高层次）

* 安装 n8n（通常通过 Docker）。
* 将其放在反向代理（Nginx / Caddy）后面并启用 HTTPS。
* 将数据持久化到磁盘。

{% hint style="warning" %}
如果将 n8n 暴露到公共互联网，请保护它。使用 HTTPS 和强认证。
{% endhint %}

### 客户端区域的主要功能

您通常会看到这些部分：

* **服务器信息**：主机名、状态、规格、位置、IPv4/IPv6、初始用户/密码。
* **快速操作**：重启、断电。
* **控制台**：当 SSH 失败时使用控制台。
* **防火墙**：按端口允许/拒绝入站规则。
* **ISO 映像**：挂载 ISO 以安装自定义操作系统。
* **重装（Rebuild）**：重新安装操作系统。
* **救援模式**：引导进入救援环境。
* **备份**：管理备份（如果您的计划包含备份）。
* **快照**：创建手动的时间点快照。
* **查看服务器指标**：CPU/RAM/磁盘/网络 使用情况图表。
* **主 IP 地址**：IP 信息、被封状态、反向 DNS（PTR）。

{% hint style="warning" %}
诸如 **重装（Rebuild）** 和 **恢复** 可能会擦除数据。始终先创建备份或快照。
{% endhint %}

### 快速上手

{% stepper %}
{% step %}

### 1）获取访问详情

1. 检查您的开通邮件。
2. 打开客户端区域。
3. 打开您的 **n8n VPS** 服务。

保留以下详情：

* IPv4（或主机名）
* 用户名（通常为 `root`)
* 初始密码

客户端区域：<https://prevps.com/clients/clientarea.php>
{% endstep %}

{% step %}

### 2）通过 SSH 登录服务器

{% tabs %}
{% tab title="macOS / Linux" %}

```bash
ssh root@YOUR_SERVER_IP
```

{% endtab %}

{% tab title="Windows" %}
使用 Windows 终端（OpenSSH）或 PuTTY。主机： `YOUR_SERVER_IP`。 用户： `root`.
{% endtab %}
{% endtabs %}
{% endstep %}

{% step %}

### 3）第一天的最低设置

* 更改默认密码。
* 更新操作系统软件包。
* 添加 SSH 密钥。
* 如果可能，禁用密码登录。
* 启用防火墙并只打开必要的端口。
  {% endstep %}
  {% endstepper %}

### 管理您的 VPS（服务器管理）

#### 服务器信息

使用此功能可快速复制您的服务器详情：

* **主机名**：服务器名称。
* **状态**：运行中 / 已停止。
* **服务器类型**：vCPU、内存、SSD。
* **位置**：数据中心位置。
* **IPv4 / IPv6**：访问地址。
* **用户名 / 密码**：初始登录详情。

{% hint style="info" %}
门户中显示的密码是初始密码。首次登录后立即更改它。
{% endhint %}

#### 快速操作：重启 / 断电

* **重启服务器**：重启服务器。
* **断电**：断电服务器。

当服务器卡住时使用此操作。在内核更新后也很常见。

{% hint style="warning" %}
断电可能在磁盘写入期间损坏数据。尽可能先从操作系统内部关机。
{% endhint %}

#### 控制台

控制台在以下情况下很有用：

* SSH 被防火墙规则阻止。
* 网络出现故障。
* 您错误配置了 SSH 守护进程。

打开控制台，然后从服务器内部修复问题。

#### 防火墙

使用此功能控制入站流量。从所需端口的允许列表开始。

常见端口：

* SSH： `22`
* HTTP： `80`
* HTTPS： `443`

{% hint style="danger" %}
在没有控制台访问之前不要阻止 SSH。您可能会把自己锁在外面。
{% endhint %}

#### ISO 映像

ISO 允许您从镜像启动。需要自定义操作系统安装时使用它。

典型工作流程：

1. 挂载 ISO。
2. 重启服务器。
3. 打开控制台并运行安装程序。

#### 重装（重新安装操作系统）

重装会从头重新安装操作系统。通常会清除磁盘数据。

在以下情况下使用重装：

* 操作系统严重损坏。
* 您想切换发行版。
* 您想要一个干净的起点。

#### 救援模式

救援模式会引导进入恢复环境。用于恢复数据或修复引导问题。

常见情况：

* 错误的网络配置。
* GRUB 问题。
* 磁盘已满。

#### 备份

如果您的计划包含备份，您可以：

* 启用备份计划。
* 查看备份列表。
* 在需要时恢复。

{% hint style="info" %}
备份与快照不同。快照最适合在执行有风险的更改之前使用。
{% endhint %}

#### 快照

快照是 VPS 的时间点映像。在以下情况之前创建一个：

* 重大更新。
* 应用升级。
* 防火墙或网络更改。

#### 查看服务器指标

指标可帮助您决定是否需要升级。跟踪：

* CPU 使用率
* 内存使用率
* 磁盘使用 / IOPS（如果可用）
* 网络流量

相关：

* [升级和降级](/documentation/documentation-zh/zhang-dan-yu-ke-hu-qu/sheng-ji-yu-jiang-ji.md)

### 主 IP 地址 + 反向 DNS（PTR）

在 IP 部分，您会看到：

* IP 地址
* 被封状态
* 反向 DNS（PTR）
* **编辑** 和 **重置** 按钮

PTR 通常是邮件服务器所需的。它也可以提升某些服务对 IP 的信任度。

{% hint style="warning" %}
PTR 应指向您控制的主机名。该主机名应解析回相同的 IP。
{% endhint %}

### 如果您无法访问服务器

按以下顺序尝试：

1. 检查状态是否为 **运行中**.
2. 使用快速操作重启。
3. 使用 **控制台** 检查 SSH 和防火墙规则。
4. 确认您的防火墙允许 SSH（端口 `22`).

另见：

* [故障排除清单](/documentation/documentation-zh/zhi-chi/gu-zhang-pai-chu-qing-dan.md)

### 推荐后续阅读

* 知识库：<https://prevps.com/clients/index.php?rp=/knowledgebase>
* 公告：<https://prevps.com/clients/index.php?rp=/announcements>


---

# 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:

```
GET https://docs.prevps.com/documentation/documentation-zh/chan-pin/n8n-vps.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
