# Self-hosting

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

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

**Page:** 60

---

## [在 Linode 上托管 Discourse？](https://meta.discourse.org/t/discourse-hosting-on-linode/240977)

<div class="topic-metadata">

**Author:** [@denvergeeks](https://meta.discourse.org/u/denvergeeks)\
**回覆:** 30\
**Last updated:** [2022年十月8日 09:49 UTC](https://meta.discourse.org/t/discourse-hosting-on-linode/240977 "2022-10-08T09:49:49Z")

</div>

我遵循了下面的教程，该教程使我能够快速而简单地在 Linode 上运行（我也能够做到这一点，但在 DigitalOcean 上遇到了更大的困难）。 通过在此论坛上搜索，我了解到……

---

## [运行启动器重建应用程序后引导失败](https://meta.discourse.org/t/failed-to-bootstrap-after-running-launcher-rebuild-app/241303)

<div class="topic-metadata">

**Author:** [@b4oshany](https://meta.discourse.org/u/b4oshany)\
**回覆:** 3\
**Last updated:** [2022年十月7日 22:50 UTC](https://meta.discourse.org/t/failed-to-bootstrap-after-running-launcher-rebuild-app/241303 "2022-10-07T22:50:28Z")

</div>

有什么办法解决这个问题吗？ 失败 -------------------- Pups::ExecError: cd /var/www/discourse && su discourse -c 'bundle exec rake db:migrate' 失败，返回 #\<Process::Status: pid 1262 exit 1\> 失败位置：……

---

## [如何同时安装多个插件？](https://meta.discourse.org/t/how-to-install-multiple-plugins-at-the-same-time/240613)

<div class="topic-metadata">

**Author:** [@jord8on](https://meta.discourse.org/u/jord8on)\
**回覆:** 4\
**Last updated:** [2022年十月7日 10:47 UTC](https://meta.discourse.org/t/how-to-install-multiple-plugins-at-the-same-time/240613 "2022-10-07T10:47:44Z")

</div>

是否可以同时安装多个插件（批量安装插件）？（Docker安装） 我之前使用了ProCourse Installer，后来不得不将其移除，据称这会移除我所有的旧插件，而我……

---

## [Set DISCOURSE\_ENABLE\_CORS for hosted forum](https://meta.discourse.org/t/set-discourse-enable-cors-for-hosted-forum/69894)

<div class="topic-metadata">

**Author:** [@Jan\_Curn](https://meta.discourse.org/u/Jan_Curn)\
**回覆:** 5\
**Last updated:** [2022年十月7日 13:43 UTC](https://meta.discourse.org/t/set-discourse-enable-cors-for-hosted-forum/69894 "2022-10-07T13:43:14Z")

</div>

Hi there, we’re a hosted Discourse forum running at forum.apifier.com. We’d like to access the forum using the API. I’ve added our website to Settings → Security → cors origins, but still the access doesn’t work. Please …

---

## [传入邮件服务器有证书错误](https://meta.discourse.org/t/incoming-mail-server-has-certificate-error/241178)

<div class="topic-metadata">

**Author:** [@Alex\_P](https://meta.discourse.org/u/Alex_P)\
**回覆:** 13\
**Last updated:** [2022年十月7日 05:47 UTC](https://meta.discourse.org/t/incoming-mail-server-has-certificate-error/241178 "2022-10-07T05:47:38Z")

</div>

如果我不需要任何高级功能，那么我就不需要使用 POSTCONF\_smtpd\_tls... 变量，对吗？ 网站当然是 https。

---

## [如何在自己的家庭服务器上设置Discourse](https://meta.discourse.org/t/how-to-setup-discourse-on-my-own-home-server/227935)

<div class="topic-metadata">

**Author:** [@David\_Mac](https://meta.discourse.org/u/David_Mac)\
**回覆:** 6\
**Last updated:** [2022年十月5日 13:23 UTC](https://meta.discourse.org/t/how-to-setup-discourse-on-my-own-home-server/227935 "2022-10-05T13:23:49Z")

</div>

您好， 我想在自己的家用服务器上使用静态IP设置Discourse。 我对Linux很陌生，也不是系统管理员，所以希望得到一步一步的指导。所以请不要假设我了解Linux的知识……

---

## [回滚版本，以解决问题更新](https://meta.discourse.org/t/reverting-version-after-problematic-update/240656)

<div class="topic-metadata">

**Author:** [@hiccup](https://meta.discourse.org/u/hiccup)\
**回覆:** 14\
**Last updated:** [2022年十月2日 18:24 UTC](https://meta.discourse.org/t/reverting-version-after-problematic-update/240656 "2022-10-02T18:24:26Z")

</div>

我该如何恢复？ 谢谢

---

## [一些帮助我启动新服务器的 Ansible 脚本](https://meta.discourse.org/t/some-ansible-scripts-that-help-me-start-a-new-server/147608)

<div class="topic-metadata">

**Author:** [@dnk8n](https://meta.discourse.org/u/dnk8n)\
**回覆:** 7\
**Last updated:** [2022年十月2日 11:16 UTC](https://meta.discourse.org/t/some-ansible-scripts-that-help-me-start-a-new-server/147608 "2022-10-02T11:16:21Z")

</div>

这使我能更快地进入安装步骤。它处理了 Git、Docker 安装等。目前仅在 https://hetzner.cloud 上测试过，但应适用于其他平台。如果使用 AWS，只需跳过第一个代码块即可……

---

## [如何在 Digital Ocean Droplet 上将 http 重定向到 https？](https://meta.discourse.org/t/how-to-redirect-http-to-https-on-digital-ocean-droplet/240511)

<div class="topic-metadata">

**Author:** [@asugar](https://meta.discourse.org/u/asugar)\
**回覆:** 4\
**Last updated:** [2022年九月30日 20:09 UTC](https://meta.discourse.org/t/how-to-redirect-http-to-https-on-digital-ocean-droplet/240511 "2022-09-30T20:09:27Z")

</div>

大家好， 我通过 Digital Ocean 镜像安装了 Discourse。我想将 www 和 http 重定向到 https，该如何操作？ 我搜索了很多，但找不到解决方案。关于这个话题的大部分帖子都在谈论 S…

---

## [./launcher start app - 不运行 (需要重新设置 SMTP)](https://meta.discourse.org/t/launcher-start-app-does-not-run-need-to-re-setup-smtp/240374)

<div class="topic-metadata">

**Author:** [@ideatank](https://meta.discourse.org/u/ideatank)\
**回覆:** 14\
**Last updated:** [2022年九月30日 10:20 UTC](https://meta.discourse.org/t/launcher-start-app-does-not-run-need-to-re-setup-smtp/240374 "2022-09-30T10:20:04Z")

</div>

我需要重新设置SMTP并运行./launcher start app命令。 但是，没有提示我重新输入安装数据——电子邮件、SMTP等…… 命令运行后，在重新安装……后退回到命令行……

---

## [可以将我的 Discourse 从 Web 迁移到服务器吗？](https://meta.discourse.org/t/is-it-possible-to-move-my-discourse-from-web-to-a-server/240433)

<div class="topic-metadata">

**Author:** [@bwetherill](https://meta.discourse.org/u/bwetherill)\
**回覆:** 2\
**Last updated:** [2022年九月29日 21:30 UTC](https://meta.discourse.org/t/is-it-possible-to-move-my-discourse-from-web-to-a-server/240433 "2022-09-29T21:30:04Z")

</div>

如果我首先使用 Web UI 设置 Discourse，并使用该设置几年，之后是否可以将我的所有信息（讨论、成员等）转移到私有托管服务器？我想我可以开始……

---

## [用端口代理而不是unix domain socket有什么坏处？](https://meta.discourse.org/t/any-downsides-to-proxy-via-port-instead-of-unix-domain-socket/240359)

<div class="topic-metadata">

**Author:** [@mcdanlj](https://meta.discourse.org/u/mcdanlj)\
**回覆:** 4\
**Last updated:** [2022年九月29日 11:52 UTC](https://meta.discourse.org/t/any-downsides-to-proxy-via-port-instead-of-unix-domain-socket/240359 "2022-09-29T11:52:02Z")

</div>

我正在测试在启用 SELinux 并配置了外部 Nginx 的 CentOS 衍生版 AlmaLinux 9 上部署 Discourse。 由于基于 Ubuntu 的容器不了解 SELinux，它会不断替换 unix dom...

---

## [重建失败，请帮助！](https://meta.discourse.org/t/rebuild-failed-please-help/240037)

<div class="topic-metadata">

**Author:** [@davidkingham](https://meta.discourse.org/u/davidkingham)\
**回覆:** 7\
**Last updated:** [2022年九月28日 04:08 UTC](https://meta.discourse.org/t/rebuild-failed-please-help/240037 "2022-09-28T04:08:52Z")

</div>

我今晚进行了重建，但失败了。我禁用了所有插件，但它仍然失败。看来一些 gem 可能没有正确更新。@pfaffman 我可能需要您的帮助。 FAILED -------------------- Pups::ExecError: cd /var/www/discourse &amp;&amp; su discourse -c 'bundle install --deployment --retry 3 --jobs 4 --verbos…

---

## [安装到分区上的帮助](https://meta.discourse.org/t/help-with-installing-on-a-partition/239978)

<div class="topic-metadata">

**Author:** [@spectre](https://meta.discourse.org/u/spectre)\
**回覆:** 15\
**Last updated:** [2022年九月27日 21:57 UTC](https://meta.discourse.org/t/help-with-installing-on-a-partition/239978 "2022-09-27T21:57:30Z")

</div>

嘿，各位， 这可能是我第一次寻求这种帮助，但我急需它 :frowning: 我有一个服务器，除了交换分区外，还安装了两个分区！ 第一个分区……

---

## [./discourse-setup 端口错误](https://meta.discourse.org/t/discourse-setup-error-for-ports/240070)

<div class="topic-metadata">

**Author:** [@grousx](https://meta.discourse.org/u/grousx)\
**回覆:** 7\
**Last updated:** [2022年九月26日 11:48 UTC](https://meta.discourse.org/t/discourse-setup-error-for-ports/240070 "2022-09-26T11:48:58Z")

</div>

我尝试使用 ./discourse-setup 进行安装，但出现错误 WARNING: Port 443&80 无法解析… 我已经打开了端口并为我的域名进行了 DNS 设置。 URL：zerionn.com

---

## [电子邮件和专用IP](https://meta.discourse.org/t/emails-and-dedicated-ips/239973)

<div class="topic-metadata">

**Author:** [@piffy](https://meta.discourse.org/u/piffy)\
**回覆:** 1\
**Last updated:** [2022年九月24日 22:22 UTC](https://meta.discourse.org/t/emails-and-dedicated-ips/239973 "2022-09-24T22:22:49Z")

</div>

我一直在使用 SendGrid 发送电子邮件。我遇到的一个问题是某些邮件提供商拒绝接收电子邮件。这在迁移到 discourse 时是一个主要问题，因为我设置了用户可以恢复他们的…

---

## [安装后无法使sendgrid邮件正常工作](https://meta.discourse.org/t/cant-get-sendgird-email-to-work-after-installation/239808)

<div class="topic-metadata">

**Author:** [@asugar](https://meta.discourse.org/u/asugar)\
**回覆:** 1\
**Last updated:** [2022年九月22日 21:10 UTC](https://meta.discourse.org/t/cant-get-sendgird-email-to-work-after-installation/239808 "2022-09-22T21:10:07Z")

</div>

花了整整两天时间才让sendgrid在新安装中正常工作，但却弄不清楚为什么电子邮件不起作用。 设置 主机名 : mydomain.com 电子邮件 : mydomaind@gmail.com SMTP 地址 :……

---

## [安装 mail-receiver 时可以忽略这些错误吗？](https://meta.discourse.org/t/safe-to-ignore-these-errors-when-installing-mail-receiver/283802)

<div class="topic-metadata">

**Author:** [@sebix1](https://meta.discourse.org/u/sebix1)\
**回覆:** 1\
**Last updated:** [2022年九月22日 20:05 UTC](https://meta.discourse.org/t/safe-to-ignore-these-errors-when-installing-mail-receiver/283802 "2022-09-22T20:05:26Z")

</div>

您好，感谢您让直接交付变得如此容易！ 在构建容器时，我收到一条错误消息，提示找不到 ruby，以及一个关于 locales 的警告 完整输出： /var/discourse$ sudo ./launcher ...

---

## [每月托管费用低于100美元](https://meta.discourse.org/t/hosting-for-less-than-100-month/177582)

<div class="topic-metadata">

**Author:** [@Jennifer\_Carter](https://meta.discourse.org/u/Jennifer_Carter)\
**回覆:** 23\
**Last updated:** [2022年九月22日 20:04 UTC](https://meta.discourse.org/t/hosting-for-less-than-100-month/177582 "2022-09-22T20:04:25Z")

</div>

那么，我该如何设置网站？ 您还可以使用哪些其他主机？

---

## [将 s3\_region 设置为字符串值](https://meta.discourse.org/t/make-s3-region-a-string-value/239324)

<div class="topic-metadata">

**Author:** [@zowyle](https://meta.discourse.org/u/zowyle)\
**回覆:** 12\
**Last updated:** [2022年九月22日 01:27 UTC](https://meta.discourse.org/t/make-s3-region-a-string-value/239324 "2022-09-22T01:27:27Z")

</div>

将此变量设为有限列表的原因可能是什么？为了什么？ irb(main):007:0\> SiteSetting.s3\_region='fr-par' Traceback (most recent call last): 5: from (irb):7 4: from lib/site\_setting\_ex…

---

## [数据库问题迁移自旧版本 20150822141540](https://meta.discourse.org/t/database-issues-migrating-form-old-version-20150822141540/239413)

<div class="topic-metadata">

**Author:** [@Marcelloc](https://meta.discourse.org/u/Marcelloc)\
**回覆:** 13\
**Last updated:** [2022年九月22日 00:17 UTC](https://meta.discourse.org/t/database-issues-migrating-form-old-version-20150822141540/239413 "2022-09-22T00:17:16Z")

</div>

在尝试恢复/重建 discourse 时，它总是以数据库迁移错误结束 当前版本：20220818171849 恢复版本：20150822141540 . . . 关系“digest\_unsubscribe\_keys\_pkey”已存在于 sc…

---

## [在多站点上卸载插件](https://meta.discourse.org/t/uninstalling-a-plugin-on-multisite/223743)

<div class="topic-metadata">

**Author:** [@RGJ](https://meta.discourse.org/u/RGJ)\
**回覆:** 2\
**Last updated:** [2022年九月21日 00:55 UTC](https://meta.discourse.org/t/uninstalling-a-plugin-on-multisite/223743 "2022-09-21T00:55:35Z")

</div>

这算是一个相当特殊的情况，可能是一个错误，我很好奇是否有一个好的解决方案。 @sam，我在@你，因为如果有人应该知道的话，可能是你。 考虑一个多站点安装。 论坛A等等…

---

## [Discourse-app 容器启动后无声停止](https://meta.discourse.org/t/discourse-app-container-starts-then-silently-stops/238859)

<div class="topic-metadata">

**Author:** [@jlgarnier](https://meta.discourse.org/u/jlgarnier)\
**回覆:** 40\
**Last updated:** [2022年九月20日 15:44 UTC](https://meta.discourse.org/t/discourse-app-container-starts-then-silently-stops/238859 "2022-09-20T15:44:41Z")

</div>

亲爱的社区， 我尝试安装 Discourse 的私有实例，遵循 discourse/INSTALL-cloud.md at main · discourse/discourse · GitHub 上的官方说明。尽管脚本看起来非常完整……

---

## [NoMethodError: 未定义方法 \`min\_tags\_from\_required\_group'](https://meta.discourse.org/t/nomethoderror-undefined-method-min-tags-from-required-group/238525)

<div class="topic-metadata">

**Author:** [@hyphalos](https://meta.discourse.org/u/hyphalos)\
**回覆:** 13\
**Last updated:** [2022年九月20日 10:37 UTC](https://meta.discourse.org/t/nomethoderror-undefined-method-min-tags-from-required-group/238525 "2022-09-20T10:37:50Z")

</div>

嘿 Discourse 团队！ 我正在尝试在 stable (v2.8.8) 上的 Ubuntu 上运行 Discourse Docker，并且遇到了以下错误： rake aborted! NoMethodError: undefined method \`min\_tags\_from\_required\_group' for #

---

## [网站迁移和插件](https://meta.discourse.org/t/site-migration-and-plugins/239414)

<div class="topic-metadata">

**Author:** [@Wall-E](https://meta.discourse.org/u/Wall-E)\
**回覆:** 2\
**Last updated:** [2022年九月19日 16:25 UTC](https://meta.discourse.org/t/site-migration-and-plugins/239414 "2022-09-19T16:25:32Z")

</div>

我们的 Discourse 站点将很快迁移到新机器，并且域名将被映射到新的 IP 地址。备份文件是否包含所有已安装的插件？还是我们必须重新安装插件，就好像它们从未安装过一样……

---

## [警告：计算机的端口 443 似乎无法访问，但网页正常](https://meta.discourse.org/t/warning-port-443-of-computer-does-not-appear-to-be-accessible-but-web-page-is-ok/238120)

<div class="topic-metadata">

**Author:** [@dalu](https://meta.discourse.org/u/dalu)\
**回覆:** 11\
**Last updated:** [2022年九月19日 09:56 UTC](https://meta.discourse.org/t/warning-port-443-of-computer-does-not-appear-to-be-accessible-but-web-page-is-ok/238120 "2022-09-19T09:56:12Z")

</div>

你好， 我在设置 Discourse 时遇到此错误 警告：使用主机名无法访问计算机的端口 443 在一个自托管的 Debian 服务器上 我正在使用一个专用的 Discourse 域名，我已将……

---

## [后台工作进程“逻辑复制启动器”（PID 51）已退出，退出代码为 1](https://meta.discourse.org/t/background-worker-logical-replication-launcher-pid-51-exited-with-exit-code-1/238695)

<div class="topic-metadata">

**Author:** [@TechGeek](https://meta.discourse.org/u/TechGeek)\
**回覆:** 16\
**Last updated:** [2022年九月17日 09:47 UTC](https://meta.discourse.org/t/background-worker-logical-replication-launcher-pid-51-exited-with-exit-code-1/238695 "2022-09-17T09:47:20Z")

</div>

在多站点配置中重建数据容器导致后台工作进程“逻辑复制启动器”（PID 51）以退出码 1 错误退出。更多日志如下 218:C 11 Sep 2022 13:22:51.288 # oO0OoO0OoO…

---

## [Discourse 反向代理配置问题](https://meta.discourse.org/t/trouble-configuring-discourse-with-reverse-proxy/239186)

<div class="topic-metadata">

**Author:** [@bloodshot\_pico](https://meta.discourse.org/u/bloodshot_pico)\
**回覆:** 3\
**Last updated:** [2022年九月16日 15:28 UTC](https://meta.discourse.org/t/trouble-configuring-discourse-with-reverse-proxy/239186 "2022-09-16T15:28:05Z")

</div>

安装了 Wikijs (Docker compose) 和 Discourse。 Wikijs 一切正常，反向代理也运行正常。 开始安装 Discourse 时遇到了一些小问题。于是我进行了一些研究，发现可能是某个……

---

## [网站已安装但无管理员电子邮件激活](https://meta.discourse.org/t/site-installed-but-no-admin-email-activation/239165)

<div class="topic-metadata">

**Author:** [@spectre](https://meta.discourse.org/u/spectre)\
**回覆:** 6\
**Last updated:** [2022年九月16日 13:25 UTC](https://meta.discourse.org/t/site-installed-but-no-admin-email-activation/239165 "2022-09-16T13:25:03Z")

</div>

大家好， 标题说明了一切。我在 Ubuntu 20.04、CentOS 7 上安装了 discourse 大约 10 次，甚至在 Debian 10 的预装 Docker 上安装，每次在 discourse 设置部分都做了一些更改，思考着发生了什么……

---

## [缺少 'theme\_fields' 和 rake db:migrate 的 SyntaxError 故障](https://meta.discourse.org/t/missing-theme-fields-and-rake-db-migrate-syntaxerror-failure/238187)

<div class="topic-metadata">

**Author:** [@SoothSinger](https://meta.discourse.org/u/SoothSinger)\
**回覆:** 1\
**Last updated:** [2022年九月15日 23:11 UTC](https://meta.discourse.org/t/missing-theme-fields-and-rake-db-migrate-syntaxerror-failure/238187 "2022-09-15T23:11:22Z")

</div>

大家好， 我正在尝试为 Debian Buster（在 Docker 中）执行 Discourse v2.8.8 的新安装。目前 Sidekiq 任务因与 theme\_fields 相关的以下错误而失败： 2022-09-06 08:25:53.301 AEST \[12……

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

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