# Self-hosting

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

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

**Page:** 61

---

## [卸载 Discourse 实例](https://meta.discourse.org/t/uninstalling-discourse-instance/128637)

<div class="topic-metadata">

**Author:** [@Earlie](https://meta.discourse.org/u/Earlie)\
**回覆:** 7\
**Last updated:** [2022年九月15日 12:58 UTC](https://meta.discourse.org/t/uninstalling-discourse-instance/128637 "2022-09-15T12:58:40Z")

</div>

你好， 是否有关于如何通过命令行卸载 Discourse 实例的完整文档？ 这是为了重新进行干净安装所必需的。

---

## [Discourse 和 MailJet 问题](https://meta.discourse.org/t/discourse-and-mailjet-issue/239026)

<div class="topic-metadata">

**Author:** [@Francky](https://meta.discourse.org/u/Francky)\
**回覆:** 6\
**Last updated:** [2022年九月14日 23:50 UTC](https://meta.discourse.org/t/discourse-and-mailjet-issue/239026 "2022-09-14T23:50:50Z")

</div>

我之前在沙盒模式下使用亚马逊的SES一切正常，但亚马逊拒绝了我访问生产模式的权限。 我决定尝试使用MailJet，但我认为我遗漏了什么，而且我无法理解……

---

## [新的Litespeed反向代理安装在加载屏幕上停滞](https://meta.discourse.org/t/new-installation-behind-litespeed-reverse-proxy-stalls-on-loading-screen/239036)

<div class="topic-metadata">

**Author:** [@prostasia](https://meta.discourse.org/u/prostasia)\
**回覆:** 5\
**Last updated:** [2022年九月14日 23:30 UTC](https://meta.discourse.org/t/new-installation-behind-litespeed-reverse-proxy-stalls-on-loading-screen/239036 "2022-09-14T23:30:28Z")

</div>

我正在将现有的 Discourse 安装迁移到新服务器，其第一阶段是在新服务器上进行全新的 Discourse 安装。新服务器已在 80 和 443 端口上运行了 Web 服务器，…

---

## [Blazingfast.io 域名与 Discourse 外部托管（无法访问域名）](https://meta.discourse.org/t/blazingfast-io-domain-discourse-hosted-externally-cant-access-domain/239008)

<div class="topic-metadata">

**Author:** [@2TapPrince](https://meta.discourse.org/u/2TapPrince)\
**回覆:** 1\
**Last updated:** [2022年九月14日 16:23 UTC](https://meta.discourse.org/t/blazingfast-io-domain-discourse-hosted-externally-cant-access-domain/239008 "2022-09-14T16:23:39Z")

</div>

您好， 我想在我的外部托管 VPS 上设置 discourse。我从 blazingfast 获取了一个域名。 但是，我运行了设置，它说它无法访问我的子域名。所以我联系了 blazingfast 来禁用防火墙……

---

## [托管说明不清楚 - 是否可以在没有 sudo 的情况下安装在租用的网络托管上？](https://meta.discourse.org/t/hosting-instructions-unclear-possible-to-install-on-rented-webhosting-without-sudo/183600)

<div class="topic-metadata">

**Author:** [@TreeGaseede](https://meta.discourse.org/u/TreeGaseede)\
**回覆:** 4\
**Last updated:** [2022年九月14日 13:50 UTC](https://meta.discourse.org/t/hosting-instructions-unclear-possible-to-install-on-rented-webhosting-without-sudo/183600 "2022-09-14T13:50:40Z")

</div>

您好，距离我上次尝试设置类似的东西已经很久了（以前我曾设置过 PHPNuke 之类的东西），看了一圈，似乎 Discourse 是最好的论坛平台之一……

---

## [如何重新连接到head，此前曾处理过损坏的更新？](https://meta.discourse.org/t/how-to-reconnect-to-head-after-previously-dealing-with-a-broken-update/238885)

<div class="topic-metadata">

**Author:** [@mreach](https://meta.discourse.org/u/mreach)\
**回覆:** 4\
**Last updated:** [2022年九月14日 12:02 UTC](https://meta.discourse.org/t/how-to-reconnect-to-head-after-previously-dealing-with-a-broken-update/238885 "2022-09-14T12:02:25Z")

</div>

几个月前遇到了一些问题，最终不得不回退到 2.9.0.beta1，并且当时无法进一步更新。 由于各种特殊情况，我不得不放弃这个项目……

---

## [无法安装 Data Explorer Plugin 最新版本](https://meta.discourse.org/t/unable-to-install-data-explorer-plugin-last-version/238483)

<div class="topic-metadata">

**Author:** [@attalbialami](https://meta.discourse.org/u/attalbialami)\
**回覆:** 4\
**Last updated:** [2022年九月12日 18:07 UTC](https://meta.discourse.org/t/unable-to-install-data-explorer-plugin-last-version/238483 "2022-09-12T18:07:05Z")

</div>

你好， 我卡在这里几天了，如果有人能帮忙！ 当我想在我的 Discourse 实例上安装最新版本的 Data Explorer 时，我收到了以下错误： NameError：未初始化的常量 BaseBoo…

---

## [发送邮件时遇到问题](https://meta.discourse.org/t/trouble-sending-emails/238639)

<div class="topic-metadata">

**Author:** [@Marcell\_Csendes](https://meta.discourse.org/u/Marcell_Csendes)\
**回覆:** 14\
**Last updated:** [2022年九月11日 14:14 UTC](https://meta.discourse.org/t/trouble-sending-emails/238639 "2022-09-11T14:14:23Z")

</div>

你好。 我尝试在邮件服务器切换后发送邮件，之前工作正常，但现在我无法发送邮件。问题是，连接是 100% 正常的，正如你所看到的。但出于某些原因，它是 u…

---

## [迁移到 S3 在重新烘焙时失败](https://meta.discourse.org/t/migrate-to-s3-fails-on-rebake/151486)

<div class="topic-metadata">

**Author:** [@TheEngineer](https://meta.discourse.org/u/TheEngineer)\
**回覆:** 17\
**Last updated:** [2022年九月10日 23:19 UTC](https://meta.discourse.org/t/migrate-to-s3-fails-on-rebake/151486 "2022-09-10T23:19:52Z")

</div>

在 @itsbhanusharma 的帮助下，我一直致力于将我的旧上传文件迁移到 S3。 我按照本指南中的步骤操作： 重建之后，上传文件仍未迁移到 S3，这很奇怪。Discourse-doctor 报告…

---

## [所有请求都因“net::ERR\_CERT\_COMMON\_NAME\_INVALID”而失败](https://meta.discourse.org/t/all-requests-failing-due-to-net-err-cert-common-name-invalid/238641)

<div class="topic-metadata">

**Author:** [@darkpixlz](https://meta.discourse.org/u/darkpixlz)\
**回覆:** 3\
**Last updated:** [2022年九月10日 15:46 UTC](https://meta.discourse.org/t/all-requests-failing-due-to-net-err-cert-common-name-invalid/238641 "2022-09-10T15:46:40Z")

</div>

你好， 我的论坛现在着火了。 直接访问任何页面都会导致错误。 访问主页然后访问一个主题会在控制台中充满错误，而且它非常...

---

## [安装在本地网络上工作，但在外部无法访问](https://meta.discourse.org/t/installation-working-when-accessed-via-local-network-however-not-externally/238632)

<div class="topic-metadata">

**Author:** [@ddcbeatty](https://meta.discourse.org/u/ddcbeatty)\
**回覆:** 2\
**Last updated:** [2022年九月10日 13:43 UTC](https://meta.discourse.org/t/installation-working-when-accessed-via-local-network-however-not-externally/238632 "2022-09-10T13:43:25Z")

</div>

我已在 Ubuntu 服务器上安装了 Discourse。我有一个“Google Domains”的域名，它使用动态 DNS 指向我的服务器。我可以通过域名从网络外部远程访问我的服务器，并且可以……

---

## [开发环境设置失败，无法进行 bundle install](https://meta.discourse.org/t/dev-environment-setup-failed-on-bundle-install/214346)

<div class="topic-metadata">

**Author:** [@uxgnod](https://meta.discourse.org/u/uxgnod)\
**回覆:** 2\
**Last updated:** [2022年九月10日 01:22 UTC](https://meta.discourse.org/t/dev-environment-setup-failed-on-bundle-install/214346 "2022-09-10T01:22:28Z")

</div>

大家好，我想通过阅读代码来学习 Rails 开发，并尝试为它做出贡献。 我刚刚按照这个链接在 Macbook Air M1 上设置了我的开发环境。 在 bundle install 步骤中，我遇到了一个错误……

---

## [\[需要帮助\]\[MacOS M1 开发安装\] ArgumentError 未知关键字](https://meta.discourse.org/t/need-help-macos-m1-dev-installation-argumenterror-unknown-keywords/238578)

<div class="topic-metadata">

**Author:** [@YAN](https://meta.discourse.org/u/YAN)\
**回覆:** 0\
**Last updated:** [2022年九月9日 18:26 UTC](https://meta.discourse.org/t/need-help-macos-m1-dev-installation-argumenterror-unknown-keywords/238578 "2022-09-09T18:26:22Z")

</div>

我正在尝试按照 《macOS 上安装 Discourse 的新手指南（用于开发）》 进行安装。我已通过脚本安装了依赖项。为了修复一些错误，我修改了一些代码： 在脚本中：brew …

---

## [使用 Caddy 作为 rproxy 设置 discourse 的帮助](https://meta.discourse.org/t/need-help-setting-up-discourse-using-caddy-as-rproxy/238456)

<div class="topic-metadata">

**Author:** [@Tinsmith6176](https://meta.discourse.org/u/Tinsmith6176)\
**回覆:** 7\
**Last updated:** [2022年九月9日 07:46 UTC](https://meta.discourse.org/t/need-help-setting-up-discourse-using-caddy-as-rproxy/238456 "2022-09-09T07:46:49Z")

</div>

如果我没有在正确的版块发帖，我很抱歉。 我正在使用 Oracle Free tier 作为我的服务器，并且我有一个 Ubuntu 安装，上面运行着几个 Docker 容器。 我正在使用 Caddy，它也运行在 Docker 中，作为……

---

## [Smtp doctor 测试，使用端口465，即使已配置为使用2525](https://meta.discourse.org/t/smtp-doctor-test-using-port-465-even-though-its-configured-to-use-2525/238372)

<div class="topic-metadata">

**Author:** [@Bryan\_Joseph](https://meta.discourse.org/u/Bryan_Joseph)\
**回覆:** 8\
**Last updated:** [2022年九月9日 00:21 UTC](https://meta.discourse.org/t/smtp-doctor-test-using-port-465-even-though-its-configured-to-use-2525/238372 "2022-09-09T00:21:48Z")

</div>

我没有收到来自网站或医生的电子邮件。我注意到医生正在使用端口 465，尽管我已将其配置为使用 2525： ==================== YML SETTINGS ==================== DISCOURSE\_HOSTNAME=url SMTP\_ADDRESS=smtp.mailgun.org DEVELOPER\_EMAILS=REDACTED SMTP\_PASSWORD=REDACTED SMTP\_PO…

---

## [错误 - 端口 443 未打开？](https://meta.discourse.org/t/error-port-443-not-open/238383)

<div class="topic-metadata">

**Author:** [@Timothee\_scheufler](https://meta.discourse.org/u/Timothee_scheufler)\
**回覆:** 10\
**Last updated:** [2022年九月7日 22:00 UTC](https://meta.discourse.org/t/error-port-443-not-open/238383 "2022-09-07T22:00:27Z")

</div>

您好， 这可能是一个基本问题，但是：我目前正在尝试将 Discourse 安装到我的 Ubuntu 服务器上，但我总是遇到这个错误： 我的 DNS 设置似乎是正确的： 我该如何解决这个问题？ 提前感谢！

---

## [发布一年多后解决了一个错误](https://meta.discourse.org/t/resolving-an-error-more-than-a-year-after-publishing-it/238358)

<div class="topic-metadata">

**Author:** [@Rhod](https://meta.discourse.org/u/Rhod)\
**回覆:** 3\
**Last updated:** [2022年九月7日 17:36 UTC](https://meta.discourse.org/t/resolving-an-error-more-than-a-year-after-publishing-it/238358 "2022-09-07T17:36:15Z")

</div>

继续讨论“执行命令 "./launcher rebuild app" 时出错”： 看到我一年前创建的一个主题 我意识到我当时遇到的问题本可以轻易解决，但没有…

---

## [Let's Encrypt 安装后网站无法访问](https://meta.discourse.org/t/cant-access-site-after-lets-encrypt-install/238330)

<div class="topic-metadata">

**Author:** [@cokestroke](https://meta.discourse.org/u/cokestroke)\
**回覆:** 17\
**Last updated:** [2022年九月7日 17:26 UTC](https://meta.discourse.org/t/cant-access-site-after-lets-encrypt-install/238330 "2022-09-07T17:26:01Z")

</div>

刚在 Discourse 上安装了 Let’s Encrypt，现在网站无法打开。 有什么想法我可能做错了什么吗？ 我取消了安装 Let’s Encrypt 的行的注释并重建了应用。 现在我收到“Safari 无法连接……

---

## [Discourse 不支持 proxy\_protocol](https://meta.discourse.org/t/discourse-not-support-proxy-protocol/211311)

<div class="topic-metadata">

**Author:** [@shihuang214](https://meta.discourse.org/u/shihuang214)\
**回覆:** 3\
**Last updated:** [2022年九月7日 12:57 UTC](https://meta.discourse.org/t/discourse-not-support-proxy-protocol/211311 "2022-09-07T12:57:51Z")

</div>

如果 Discourse 在 haproxy 之后，现在我们使用代理协议 (proxy\_protocol)，但 Discourse 目前不支持它。 nginx 文档： 我尝试通过使用模板来解决这个问题，但是 由于其中大多数都基于相似的模板，这可能不是一个好的…

---

## [数据库大小与维护](https://meta.discourse.org/t/database-size-maintenance/238312)

<div class="topic-metadata">

**Author:** [@helmi](https://meta.discourse.org/u/helmi)\
**回覆:** 1\
**Last updated:** [2022年九月7日 07:55 UTC](https://meta.discourse.org/t/database-size-maintenance/238312 "2022-09-07T07:55:23Z")

</div>

我想了解一下 Discourse 使用的数据库大小是否合理，以及是否有优化空间。磁盘上使用的空间目前为 120GB，以下是最大的表。 关系…

---

## [无法使用 ./launcher 进入应用](https://meta.discourse.org/t/cannot-use-launcher-enter-app/236323)

<div class="topic-metadata">

**Author:** [@TechAUmNu](https://meta.discourse.org/u/TechAUmNu)\
**回覆:** 7\
**Last updated:** [2022年九月4日 22:01 UTC](https://meta.discourse.org/t/cannot-use-launcher-enter-app/236323 "2022-09-04T22:01:41Z")

</div>

我正在尝试进入控制台，但是当我使用 ./launcher enter app 我得到了这个非常晦涩的错误。 在 Ubuntu 22.04 上运行，全新安装。 root@discourse:/var/discourse# ./launcher enter app 检测到 x86\_64 架构。 O……

---

## [无法安装 Discourse Question Answer：ON CONFLICT DO NOTHING](https://meta.discourse.org/t/unable-to-install-discourse-question-answer-on-conflict-do-nothing/238128)

<div class="topic-metadata">

**Author:** [@scavin](https://meta.discourse.org/u/scavin)\
**回覆:** 4\
**Last updated:** [2022年九月5日 11:53 UTC](https://meta.discourse.org/t/unable-to-install-discourse-question-answer-on-conflict-do-nothing/238128 "2022-09-05T11:53:51Z")

</div>

无法安装 Discourse Question Answer == 20211020062413 CreateQuestionAnswerVotes: 迁移中 ======================== -- create\_table(:question\_answer\_votes, {}) -\> 0.0478s -- add\_index(:question\_answer\_votes, ...

---

## [如何在 Webhosting 服务器上安装 Discourse（无 SSH 控制）？](https://meta.discourse.org/t/how-to-install-discourse-on-webhosting-server-without-ssh-control/238045)

<div class="topic-metadata">

**Author:** [@Timothee\_scheufler](https://meta.discourse.org/u/Timothee_scheufler)\
**回覆:** 2\
**Last updated:** [2022年九月3日 21:53 UTC](https://meta.discourse.org/t/how-to-install-discourse-on-webhosting-server-without-ssh-control/238045 "2022-09-03T21:53:11Z")

</div>

您好， 我目前有一个运行phpbb的论坛，我想迁移到Discourse。我在Github上查看了安装文档，但它要求我有一个具有SSH控制的Web服务器才能执行此操作。有没有办法做到这一点……

---

## [在不先设置Web UI的情况下，将Discourse迁移到新服务器？](https://meta.discourse.org/t/move-discourse-to-a-new-server-without-setting-up-the-web-ui-first/76504)

<div class="topic-metadata">

**Author:** [@ffhaddad](https://meta.discourse.org/u/ffhaddad)\
**回覆:** 11\
**Last updated:** [2022年九月3日 21:19 UTC](https://meta.discourse.org/t/move-discourse-to-a-new-server-without-setting-up-the-web-ui-first/76504 "2022-09-03T21:19:54Z")

</div>

假设我想将我的Discourse站点从一个Amazon EC2实例（例如t2.micro）迁移到更大的实例（例如t2.medium），正确的操作流程是什么？我所知道的唯一方法是：备份 eksisterib;

---

## [升级时出错，希望解决或重置](https://meta.discourse.org/t/error-when-upgrading-and-would-like-to-solve-or-reset/237961)

<div class="topic-metadata">

**Author:** [@vel](https://meta.discourse.org/u/vel)\
**回覆:** 8\
**Last updated:** [2022年九月2日 20:02 UTC](https://meta.discourse.org/t/error-when-upgrading-and-would-like-to-solve-or-reset/237961 "2022-09-02T20:02:43Z")

</div>

我刚尝试升级，在控制台中遇到了一些错误，我的论坛也宕机了。 抱歉，升级 Discourse 时出错。请检查下面的日志。 控制台显示： 正在使用 xorcist…

---

## [更新失败后的错误：\[rake themes:update assets:precompile\]](https://meta.discourse.org/t/error-after-update-failed-today-rake-themes-update-assets-precompile/237960)

<div class="topic-metadata">

**Author:** [@TroyaNO](https://meta.discourse.org/u/TroyaNO)\
**回覆:** 5\
**Last updated:** [2022年九月2日 20:07 UTC](https://meta.discourse.org/t/error-after-update-failed-today-rake-themes-update-assets-precompile/237960 "2022-09-02T20:07:16Z")

</div>

今天，在通过管理面板执行标准更新后，更新被阻止，并且尝试使用 ./launcher rebuild app 手动执行该过程第一次不起作用……

---

## [聊天需要多少额外的磁盘空间？](https://meta.discourse.org/t/how-much-extra-disk-space-is-required-for-chat/237965)

<div class="topic-metadata">

**Author:** [@th21](https://meta.discourse.org/u/th21)\
**回覆:** 3\
**Last updated:** [2022年九月2日 19:11 UTC](https://meta.discourse.org/t/how-much-extra-disk-space-is-required-for-chat/237965 "2022-09-02T19:11:52Z")

</div>

聊天消息会占用大量磁盘存储空间吗？我大约还有 15G 的剩余空间，每天有大约 100 个活跃用户，想测试一下。

---

## [关于上传到 AWS S3 和配置好的 CDN](https://meta.discourse.org/t/uploads-to-aws-s3-and-configured-cdn/237840)

<div class="topic-metadata">

**Author:** [@plipsqueek](https://meta.discourse.org/u/plipsqueek)\
**回覆:** 2\
**Last updated:** [2022年九月1日 17:43 UTC](https://meta.discourse.org/t/uploads-to-aws-s3-and-configured-cdn/237840 "2022-09-01T17:43:53Z")

</div>

我从 2019 年开始就在 DigitalOcean 服务器上设置了 Discourse 实例，并配置为通过 Cloudflare 路由流量。今天，我将我的上传和备份迁移到了 S3，迁移完成后，我看到了这个警告…

---

## [123-reg 和 discourse 在托管的虚拟专用服务器上无法正常工作 - 所有其他方面似乎都正常](https://meta.discourse.org/t/email-not-working-with-123-reg-and-discourse-on-hosted-virtual-private-server-all-other-aspects-appear-to/237744)

<div class="topic-metadata">

**Author:** [@bc2018cb](https://meta.discourse.org/u/bc2018cb)\
**回覆:** 5\
**Last updated:** [2022年八月31日 21:07 UTC](https://meta.discourse.org/t/email-not-working-with-123-reg-and-discourse-on-hosted-virtual-private-server-all-other-aspects-appear-to/237744 "2022-08-31T21:07:05Z")

</div>

您好 第一次使用 discourse 作为管理员。尝试设置电子邮件，但无论我尝试什么都会失败 我正在编辑 app.yml 然后运行 ./launcher rebuild app 使用这些设置：- discourse\_smtp\_address: " ...

---

## [从 2.9.0.beta8 升级导致网站崩溃，无法恢复](https://meta.discourse.org/t/upgrading-from-2-9-0-beta8-broke-the-site-unrecoverable/237660)

<div class="topic-metadata">

**Author:** [@smileBeda](https://meta.discourse.org/u/smileBeda)\
**回覆:** 11\
**Last updated:** [2022年八月31日 14:59 UTC](https://meta.discourse.org/t/upgrading-from-2-9-0-beta8-broke-the-site-unrecoverable/237660 "2022-08-31T14:59:29Z")

</div>

你好 我们只是点击了管理员升级按钮。 没有预料到这个： 糟糕 为该讨论论坛提供支持的软件遇到了意外问题。我们对造成的不便深表歉意。 详细信息…

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

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