Skip to content

自托管 n8n(Self-hosting n8n)#

本节提供有关设置自托管 n8n 的指南。所有自托管安装都使用相同的核心产品。没有许可密钥时,n8n 以免费的社区版运行。添加商业或企业版许可密钥可以启用这些版本。

🌐 This section provides guidance on setting up self-hosted n8n. All self-hosted installations use the same core product. Without a license key, n8n runs as the free Community edition. Adding a Business or Enterprise license key enables those editions.

请参阅 社区版功能 了解可用功能列表。

🌐 See Community edition features for a list of available features.

  • 安装与服务器设置

    使用 npm 或 Docker 在任何平台上安装 n8n。或者按照我们的指南在热门托管平台上安装。

    Docker 安装指南

  • Configuration

    了解如何使用环境变量配置 n8n。

    环境变量

  • 用户和身份验证

    为你的 n8n 实例选择并设置用户身份验证。

    认证

  • Scaling

    管理数据、模式和进程,以确保 n8n 在大规模部署下平稳运行。

    缩放

  • 保护 n8n

    通过设置 SSL、SSO 或双因素身份验证 (2FA),或者阻止或选择退出某些数据收集或功能,来保护你的 n8n 实例。

    n8n 安全指南

  • 入门套件

    刚接触 n8n 或 AI?试试我们的自托管 AI 入门套件。由 n8n 精心策划,它将自托管的 n8n 平台与兼容的 AI 产品和组件结合,帮助你快速开始构建自托管 AI 工作流。

    入门套件

Self-hosting knowledge prerequisites

Self-hosting n8n requires technical knowledge, including:

  • Setting up and configuring servers and containers
  • Managing application resources and scaling
  • Securing servers and applications
  • Configuring n8n

n8n recommends self-hosting for expert users. Mistakes can lead to data loss, security issues, and downtime. If you aren't experienced at managing servers, n8n recommends n8n Cloud.