# Self-hosting

**URL:** https://meta.discourse.org/c/support/self-hosting/31.md?page=5

[最新版本](https://meta.discourse.org/latest.md) · [分類](https://meta.discourse.org/categories.md) · [標簽](https://meta.discourse.org/tags.md)

**Page:** 6

---

## [升级 pgvector 到 0.8.0 在运行迁移 20251007123645 之前安全吗？](https://meta.discourse.org/t/is-it-safe-to-upgrade-pgvector-to-0-8-0-before-running-migration-20251007123645/396794)

<div class="topic-metadata">

**Author:** [@Andrés\_Tarrío](https://meta.discourse.org/u/Andr%C3%A9s_Tarr%C3%ADo)\
**回覆:** 1\
**Last updated:** [2026年二月23日 13:51 UTC](https://meta.discourse.org/t/is-it-safe-to-upgrade-pgvector-to-0-8-0-before-running-migration-20251007123645/396794 "2026-02-23T13:51:22Z")

</div>

大家好， 我正在准备从 Discourse 3.4.5 升级到 2026.1，我注意到迁移任务 \`20251007123645\_upgrade\_pg\_vector080\_take2\` 会在需要时将 pgvector 更新到 0.8.0。 我的问题是： 这样做安全吗……

---

## [将Discourse存档到网站](https://meta.discourse.org/t/archiving-discourse-into-a-website/396731)

<div class="topic-metadata">

**Author:** [@Ricardo\_Viteri](https://meta.discourse.org/u/Ricardo_Viteri)\
**回覆:** 2\
**Last updated:** [2026年二月22日 23:28 UTC](https://meta.discourse.org/t/archiving-discourse-into-a-website/396731 "2026-02-22T23:28:30Z")

</div>

大家好！ 我运营一个论坛已经十多年了，但随着时间的推移，它已经失去了相关性。论坛建立的主题已经完成了它的使命。 这些年来我一直在财政上赞助托管费用，但我不知道……

---

## [SKIP\_CONNECTION\_TEST 在 install-discourse 脚本上无效](https://meta.discourse.org/t/skip-connection-test-does-not-work-on-install-discourse-script/396661)

<div class="topic-metadata">

**Author:** [@darkpixlz](https://meta.discourse.org/u/darkpixlz)\
**回覆:** 3\
**Last updated:** [2026年二月21日 04:23 UTC](https://meta.discourse.org/t/skip-connection-test-does-not-work-on-install-discourse-script/396661 "2026-02-21T04:23:24Z")

</div>

我已经尝试了所有我能想到的方法，但都没有奏效，所以我只能推断这是一个错误（bug）。 我尝试过的事情： SKIP\_CONNECTION\_TEST=1 ./install-discourse export SKIP\_CONNECTION\_TEST=1; ./install-disco……

---

## [将Discourse连接到postalserver.io以实现SMTP](https://meta.discourse.org/t/connecting-discourse-to-postalserver-io-for-smtp/315189)

<div class="topic-metadata">

**Author:** [@robbiep](https://meta.discourse.org/u/robbiep)\
**回覆:** 2\
**Last updated:** [2026年二月21日 02:54 UTC](https://meta.discourse.org/t/connecting-discourse-to-postalserver-io-for-smtp/315189 "2026-02-21T02:54:45Z")

</div>

嘿，我正尝试将 Discourse 连接到自托管的 postalserver.io SMTP 服务器。我收到了来自 Discourse 的以下错误： Jobs::HandledExceptionWrapper: Wrapped OpenSSL::SSL::SSLError: SSL\_connect SYSCALL returned=5 errno=0 peeraddr=x.x.x.x:25 state=SSLv3/TLS write …

---

## [Smtp 怎么修改配置，发送不出去导致一直卡死](https://meta.discourse.org/t/smtp/396569)

<div class="topic-metadata">

**Author:** [@LiRen](https://meta.discourse.org/u/LiRen)\
**回覆:** 4\
**Last updated:** [2026年二月20日 19:35 UTC](https://meta.discourse.org/t/smtp/396569 "2026-02-20T19:35:52Z")

</div>

---

## [2026.1 的 Beta 更新](https://meta.discourse.org/t/beta-update-to-2026-1/396540)

<div class="topic-metadata">

**Author:** [@raskulous](https://meta.discourse.org/u/raskulous)\
**回覆:** 15\
**Last updated:** [2026年二月19日 22:37 UTC](https://meta.discourse.org/t/beta-update-to-2026-1/396540 "2026-02-19T22:37:56Z")

</div>

我在管理面板中看到了这个更新消息，但它没有给我从网站上更新的选项，并提到我需要使用“./launcher rebuild app”来更新。 我已经这样做了，但它仍然停留在 3.6……

---

## [单行安装中没有 SMTP 的邮件作业失败？](https://meta.discourse.org/t/failed-email-jobs-on-one-line-install-without-smtp/396519)

<div class="topic-metadata">

**Author:** [@asc](https://meta.discourse.org/u/asc)\
**回覆:** 1\
**Last updated:** [2026年二月19日 16:22 UTC](https://meta.discourse.org/t/failed-email-jobs-on-one-line-install-without-smtp/396519 "2026-02-19T16:22:04Z")

</div>

我使用的是新的一行安装的自托管版本，最近在管理仪表板上收到了关于 Sidekiq 邮件作业失败的通知： 我没有按照自托管说明中的一行安装说明配置 SMTP……

---

## [更新问题，我该按那个可怕的大红按钮吗？](https://meta.discourse.org/t/update-problem-do-i-press-the-big-scary-red-button/396452)

<div class="topic-metadata">

**Author:** [@stephtara](https://meta.discourse.org/u/stephtara)\
**回覆:** 8\
**Last updated:** [2026年二月19日 00:00 UTC](https://meta.discourse.org/t/update-problem-do-i-press-the-big-scary-red-button/396452 "2026-02-19T00:00:57Z")

</div>

好的，我知道我不应该在睡前更新。发生了这种情况： 我仍然开着那个窗口（日志有用吗？）但网站的其他部分似乎宕机了 :scream: 。 现在是时候点击……了吗？

---

## [持续的DNS错误，无论我怎么尝试](https://meta.discourse.org/t/continued-dns-errors-no-matter-what-i-try/396335)

<div class="topic-metadata">

**Author:** [@Wolf\_Witch](https://meta.discourse.org/u/Wolf_Witch)\
**回覆:** 12\
**Last updated:** [2026年二月18日 17:13 UTC](https://meta.discourse.org/t/continued-dns-errors-no-matter-what-i-try/396335 "2026-02-18T17:13:40Z")

</div>

好的，各位，我已经尝试了所有我能想到的方法，希望有人能帮帮忙。 我的 DNS 443 端口和 80 端口持续出现错误。 我将 forum.vnfreaks.com 设置为我在 clou……的 IP 地址

---

## [异常高的 CPU 使用率](https://meta.discourse.org/t/unusually-high-cpu-usage/394651)

<div class="topic-metadata">

**Author:** [@char](https://meta.discourse.org/u/char)\
**回覆:** 31\
**Last updated:** [2026年二月18日 13:28 UTC](https://meta.discourse.org/t/unusually-high-cpu-usage/394651 "2026-02-18T13:28:41Z")

</div>

大家好，我们正在尝试解决我们的 Discourse 安装在过去几天中出现的问题。 我们运行的是 Contabo 云 vps，8 核/32gb/nvme，用户群约 150 人；我们遇到了一些问……

---

## [如何为免费的 discourse 子域名验证电子邮件域名？](https://meta.discourse.org/t/how-to-authenticate-email-domain-for-free-discourse-subdomain/396346)

<div class="topic-metadata">

**Author:** [@ComradeDog](https://meta.discourse.org/u/ComradeDog)\
**回覆:** 4\
**Last updated:** [2026年二月18日 03:24 UTC](https://meta.discourse.org/t/how-to-authenticate-email-domain-for-free-discourse-subdomain/396346 "2026-02-18T03:24:35Z")

</div>

您好， 我正在为一个小社区设置一个自托管的 Discourse，并使用了 Discourse 提供的子域名，即 \[mydomain\].discourse.diy。 我在使用 Brevo 作为我的电子邮件提供商时遇到了问题。 Brevo 正在接收……

---

## [构建因 ruby 版本不匹配而失败](https://meta.discourse.org/t/build-fails-due-to-ruby-version-mismatch/396317)

<div class="topic-metadata">

**Author:** [@philh](https://meta.discourse.org/u/philh)\
**回覆:** 16\
**Last updated:** [2026年二月17日 23:00 UTC](https://meta.discourse.org/t/build-fails-due-to-ruby-version-mismatch/396317 "2026-02-17T23:00:36Z")

</div>

在使用以下命令几天后： ./launcher bootstrap web\_only && ./launcher destroy web\_only && ./launcher start web\_only 没有出现问题 在尝试使用 rails console 设置 SiteSetting.can\_permanentl… 时遇到了问题

---

## [将容器加入多个Docker网络](https://meta.discourse.org/t/joining-container-to-multiple-docker-networks/256260)

<div class="topic-metadata">

**Author:** [@shyguy](https://meta.discourse.org/u/shyguy)\
**回覆:** 2\
**Last updated:** [2026年二月17日 00:49 UTC](https://meta.discourse.org/t/joining-container-to-multiple-docker-networks/256260 "2026-02-17T00:49:58Z")

</div>

什么是‘经社区讨论认可的’方法来使用多个 Docker 网络？docker run 不支持多次调用 --network，所以我认为我无法使用 docker\_args 指定多个网络。i tunnel user…

---

## [您的 Redis 网络连接性能极差](https://meta.discourse.org/t/your-redis-network-connection-is-performing-extremely-poorly/342166)

<div class="topic-metadata">

**Author:** [@markersocial](https://meta.discourse.org/u/markersocial)\
**回覆:** 6\
**Last updated:** [2026年二月16日 12:13 UTC](https://meta.discourse.org/t/your-redis-network-connection-is-performing-extremely-poorly/342166 "2026-02-16T12:13:37Z")

</div>

我一直在日志中看到这个——数值在 100k 到 135 万之间——但接近 100k 的读数似乎相当普遍： 您的 Redis 网络连接性能极差。 上次的 RTT 读数是 \[97069, 103986, 98459, 100762, 381617\]，理想情况下应该小于 1000。 确保 Redis 与 Sidekiq 运行在同一个可用区或数据中心。 如果这些值接近 100,000，则意味着您的 Sidekiq 进程可能 CPU 过…

---

## [高重建内存需求：2025年4月版](https://meta.discourse.org/t/high-rebuild-memory-requirements-april-2025-edition/360419)

<div class="topic-metadata">

**Author:** [@mpalmer](https://meta.discourse.org/u/mpalmer)\
**回覆:** 32\
**Last updated:** [2026年二月15日 15:16 UTC](https://meta.discourse.org/t/high-rebuild-memory-requirements-april-2025-edition/360419 "2026-02-15T15:16:51Z")

</div>

看起来 2+2 可能已经不够用了……我正在管理一个相当普通的 Discourse 实例（没有大型/花哨的插件等），但从今天开始，它因为 ember 耗尽了所有可用的 RAM 和 swap，导致机器无响应而无法启动。添加另外 2GB 的 swap 允许启动完成，峰值 swap 使用量约为 2.5GB。

---

## [Discourse 安装 502 Bad Gateway](https://meta.discourse.org/t/discourse-install-502-bad-gateway/396060)

<div class="topic-metadata">

**Author:** [@bloodshot\_pico](https://meta.discourse.org/u/bloodshot_pico)\
**回覆:** 7\
**Last updated:** [2026年二月14日 13:18 UTC](https://meta.discourse.org/t/discourse-install-502-bad-gateway/396060 "2026-02-14T13:18:32Z")

</div>

大家好， 我之前运行 Discourse 一直正常，直到前几天。更新后，我遇到了当前的错误：502 Bad Gateway。 我使用的是 NGINX，而且我没有更改 Discourse 本身或主要的 NGINX 服务器代理的任何设置……

---

## [DiscourseID 安装问题](https://meta.discourse.org/t/discourseid-installation-issues/395974)

<div class="topic-metadata">

**Author:** [@darkpixlz](https://meta.discourse.org/u/darkpixlz)\
**回覆:** 4\
**Last updated:** [2026年二月13日 01:12 UTC](https://meta.discourse.org/t/discourseid-installation-issues/395974 "2026-02-13T01:12:43Z")

</div>

我刚在我自己的硬件上尝试了 discourse.diy 系统，但它没有成功。我做错什么了吗？

---

## [从 discourse/discourse 构建 Discourse 镜像 - 如何安装插件](https://meta.discourse.org/t/building-discourse-image-from-discourse-discourse-how-to-install-plugins/394969)

<div class="topic-metadata">

**Author:** [@stevejr](https://meta.discourse.org/u/stevejr)\
**回覆:** 10\
**Last updated:** [2026年二月9日 14:27 UTC](https://meta.discourse.org/t/building-discourse-image-from-discourse-discourse-how-to-install-plugins/394969 "2026-02-09T14:27:58Z")

</div>

您好， 有人能就构建一个内置了多个插件的 Discourse Docker 镜像提供建议吗？而不是通过用户界面安装插件？ 背景——我们希望利用最新的 Discourse 构建，即 discourse……

---

## [主机名无法访问 443 端口，80 端口也失败了](https://meta.discourse.org/t/port-443-not-accessible-using-hostname-and-port-80-also-fails/395326)

<div class="topic-metadata">

**Author:** [@iam\_best](https://meta.discourse.org/u/iam_best)\
**回覆:** 14\
**Last updated:** [2026年二月7日 03:05 UTC](https://meta.discourse.org/t/port-443-not-accessible-using-hostname-and-port-80-also-fails/395326 "2026-02-07T03:05:31Z")

</div>

您好，这是我第一次尝试自托管 Discourse。我按照官方的 GitHub 安装指南，运行了 \`wget -qO- https://raw.githubusercontent.com/discourse/discourse\_docker/main/install-discourse\` ……

---

## [安装过程中如何禁用SMTP？](https://meta.discourse.org/t/how-to-disable-smtp-during-installation/309159)

<div class="topic-metadata">

**Author:** [@Pirat](https://meta.discourse.org/u/Pirat)\
**回覆:** 6\
**Last updated:** [2026年二月8日 13:13 UTC](https://meta.discourse.org/t/how-to-disable-smtp-during-installation/309159 "2026-02-08T13:13:20Z")

</div>

是否可以在不使用SMTP的情况下设置论坛，并且禁用账户恢复系统？这样用户就可以直接注册，无需电子邮件确认。您的Discourse主机名是？\[discourse.example.com\]：…

---

## [为实现高可用性，在多台服务器上托管 Discourse？](https://meta.discourse.org/t/hosting-discourse-on-multiple-servers-for-ha/395436)

<div class="topic-metadata">

**Author:** [@mhawash](https://meta.discourse.org/u/mhawash)\
**回覆:** 1\
**Last updated:** [2026年二月7日 13:26 UTC](https://meta.discourse.org/t/hosting-discourse-on-multiple-servers-for-ha/395436 "2026-02-07T13:26:18Z")

</div>

是否有可能在多服务器设置中托管 Discourse 以实现高可用性，同时避免有关论坛自动化和后台作业的问​​题，因为这些都需要同步运行？

---

## [备份生产环境 -\> 快照 -\> 构建测试 -\> 更改地址](https://meta.discourse.org/t/backup-prod-snap-build-test-change-address/387853)

<div class="topic-metadata">

**Author:** [@elRicharde](https://meta.discourse.org/u/elRicharde)\
**回覆:** 5\
**Last updated:** [2026年二月5日 20:01 UTC](https://meta.discourse.org/t/backup-prod-snap-build-test-change-address/387853 "2026-02-05T20:01:53Z")

</div>

大家好， 我正在努力实现我的目标，尽管有人工智能的帮助。 我们的 Discourse 运行在 Hetzner 上。地址可能是 forum.thisIsMyDomain.com。 我在这里进行备份，然后从备份中创建快照。 我……

---

## [Discourse HA 本地安装 - 证书问题](https://meta.discourse.org/t/discourse-ha-local-install-certificate-problem/394861)

<div class="topic-metadata">

**Author:** [@Octoberon](https://meta.discourse.org/u/Octoberon)\
**回覆:** 3\
**Last updated:** [2026年二月3日 00:48 UTC](https://meta.discourse.org/t/discourse-ha-local-install-certificate-problem/394861 "2026-02-03T00:48:42Z")

</div>

我一直在尝试安装一个实验性的设置，其中包含两个 Ubuntu 虚拟机用于运行 Discourse，一个 HAProxy 服务器，以及第四个用于 Postgres/Redis 的虚拟机。这些服务器无法从互联网访问——它只是一个测试系统。T……

---

## [安装后缺少 SMTP 设置](https://meta.discourse.org/t/smtp-settings-missing-after-install/394622)

<div class="topic-metadata">

**Author:** [@Timelord](https://meta.discourse.org/u/Timelord)\
**回覆:** 6\
**Last updated:** [2026年一月31日 01:17 UTC](https://meta.discourse.org/t/smtp-settings-missing-after-install/394622 "2026-01-31T01:17:57Z")

</div>

刚第一次运行安装程序。我确实输入了 SMTP 详细信息，但是我在服务器 SMTP 设置中看到了这个。 SMTP 设置是否已移至其他位置供我查看？在 app.yml 中，我看到了……

---

## [TLS 证书过期 第二轮](https://meta.discourse.org/t/tls-cert-expiry-take-2/394619)

<div class="topic-metadata">

**Author:** [@fuse](https://meta.discourse.org/u/fuse)\
**回覆:** 2\
**Last updated:** [2026年一月29日 16:30 UTC](https://meta.discourse.org/t/tls-cert-expiry-take-2/394619 "2026-01-29T16:30:14Z")

</div>

正在从命令行手动重建，因为证书似乎又过期了。分享给大家，以防其他人也遇到这个问题。

---

## [前端更新在点击“全部更新”时失败并出现 502 错误。单独点击“更新”则成功。](https://meta.discourse.org/t/front-end-update-fails-with-error-502-only-if-i-click-update-all-succeed-if-update-individially/394403)

<div class="topic-metadata">

**Author:** [@Bathinda](https://meta.discourse.org/u/Bathinda)\
**回覆:** 2\
**Last updated:** [2026年一月27日 06:23 UTC](https://meta.discourse.org/t/front-end-update-fails-with-error-502-only-if-i-click-update-all-succeed-if-update-individially/394403 "2026-01-27T06:23:49Z")

</div>

我设置了两个容器，外部是 Nginx 反向代理。 从昨天开始，如果我尝试从前端管理面板点击“全部更新”，它会以以下错误失败： 但是，如果我点击第一个/单独的“更新”按钮（在“S…”下）

---

## [Discouse 与 NginX 反向代理 - 无法登录](https://meta.discourse.org/t/discouse-with-nginx-reverse-proxy-cannot-log-in/205216)

<div class="topic-metadata">

**Author:** [@stum](https://meta.discourse.org/u/stum)\
**回覆:** 4\
**Last updated:** [2026年一月23日 18:37 UTC](https://meta.discourse.org/t/discouse-with-nginx-reverse-proxy-cannot-log-in/205216 "2026-01-23T18:37:17Z")

</div>

当在 Discourse 前面运行 NGINX 反向代理时，您无法登录该网站。提交凭据后，您将被带回到索引页，并且没有会话。没有显示错误，并且它可以看到……

---

## [用户在 Nginx 设置后无法登录](https://meta.discourse.org/t/users-can-t-log-in-after-nginx-setup/394088)

<div class="topic-metadata">

**Author:** [@1vernit3](https://meta.discourse.org/u/1vernit3)\
**回覆:** 1\
**Last updated:** [2026年一月23日 18:34 UTC](https://meta.discourse.org/t/users-can-t-log-in-after-nginx-setup/394088 "2026-01-23T18:34:53Z")

</div>

切换到 Nginx 后，用户无法登录或注册。管理员和普通用户都无法登录，尝试创建新帐户时会显示消息：“我们无法检测您的帐户是否已创建……”

---

## [在同一域名下，将 Discourse 运行在 / 路径，同时将自定义应用运行在 /tickets 路径](https://meta.discourse.org/t/running-discourse-at-while-serving-a-custom-app-at-tickets-on-the-same-domain/393888)

<div class="topic-metadata">

**Author:** [@1vernit3](https://meta.discourse.org/u/1vernit3)\
**回覆:** 8\
**Last updated:** [2026年一月20日 19:57 UTC](https://meta.discourse.org/t/running-discourse-at-while-serving-a-custom-app-at-tickets-on-the-same-domain/393888 "2026-01-20T19:57:39Z")

</div>

大家好， 我正试图确认一种正确的架构，以便在保持 Discourse 位于根目录（/）的同时，在子路径下提供一个自定义应用程序，而无需修改 Discourse 的内部结构。 我想要的结果（最终目标） https……

---

## [单个 Discourse 站点使用多个应用容器](https://meta.discourse.org/t/multiple-app-containers-for-a-single-discourse-site/393913)

<div class="topic-metadata">

**Author:** [@Ethsim2](https://meta.discourse.org/u/Ethsim2)\
**回覆:** 5\
**Last updated:** [2026年一月19日 17:02 UTC](https://meta.discourse.org/t/multiple-app-containers-for-a-single-discourse-site/393913 "2026-01-19T17:02:42Z")

</div>

您可以在单个服务器上托管多个独立的 Discourse 安装（独立的容器/独立的端口/独立的 app.yml），而无需使用 Discourse 的“多站点”功能。 这比多站点更手动，但它能保持实例……

[上一頁](https://meta.discourse.org/c/support/self-hosting/31.md?page=4)

[下一頁](https://meta.discourse.org/c/support/self-hosting/31.md?page=6)
