# 在自托管 VPS 上安装 Discourse：附常见问题解答

**URL:** <https://meta.discourse.org/t/installing-discourse-on-a-self-hosted-vps-a-process-with-faqs/407922>\
**Category:** Self-hosting\
**Tags:** email, login, install, domains, hosting\
**Created:** [2026年七月17日 22:51 UTC](https://meta.discourse.org/t/installing-discourse-on-a-self-hosted-vps-a-process-with-faqs/407922 "2026-07-17T22:51:08Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)\
**Post date:** [2026年七月18日 00:52 UTC](https://meta.discourse.org/t/installing-discourse-on-a-self-hosted-vps-a-process-with-faqs/407922/4 "2026-07-18T00:52:47Z")

</div>

> [@Gid](#):
>
> 功能强大、灵活、大型/多服务器安装：**[高级 Docker 安装指南](https://github.com/discourse/discourse_docker)**

目前请完全不要碰这个。先从基础开始。

1. 使用 Namecheap 等域名注册商购买一个带有名称服务器的域名。或者既然你已经有一个想用的域名：

> [@Gid](#):
>
> 不确定该怎么做；子域名

使用子域名——这是安装 Discourse 的标准方式，这样你的地址就会类似 `forum.yoursite.com`。

1. 如果你不想使用 DiscourseID，那就找一个支持 SMTP 的事务性邮件服务（如 Mailgun 或 Resend）。Resend 是免费的，我本人也在用。

 ![Screenshot 2026-07-17 at 5.40.12 PM](https://global.discourse-cdn.com/meta/original/4X/9/9/b/99be9da290d976c1d5324a703eb42c213ca4634b.png)

1. 在你选择的 VPS 供应商处设置一个带有 SSH 访问权限的 VPS 服务器实例（droplet）。
2. 按照指南中的脚本安装 Discourse。

> [@Gid](#):
>
> 这是我的目标 [Connect User logins from my Wix site for my Discourse forum](https://meta.discourse.org/t/connect-user-logins-from-my-wix-site-for-my-discourse-forum/407636) 为了实现这一点，我该怎么做？

正如其他地方已经提到的，你很可能无法实现这一点，因为你没有企业版 Wix 账户。请先做好调研并了解相关信息。阅读是成为一名优秀 Discourse 管理员的基本要求。

 ![Screenshot 2026-07-17 at 5.50.05 PM](https://global.discourse-cdn.com/meta/original/4X/3/b/f/3bfed7d6b48c848c918528583c5676dbf289e503.png)

单点登录（SSO）是你目前根本不应该考虑的事情，因为你还在努力学习如何设置最基本的自托管安装。

要在初始设置运行后编辑 `app.yml` 文件，在 SSH 进入服务器后的提示符下执行：

```bash
cd /var/discourse
nano containers/app.yml

```

这里有一个 `app.yml` 示例文件：

> <https://github.com/discourse/discourse_docker/blob/main/samples/standalone.yml>

---

_[View the full topic](https://meta.discourse.org/t/installing-discourse-on-a-self-hosted-vps-a-process-with-faqs/407922)._
