# Self-hosting

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

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

**Page:** 63

---

## [无法从我的论坛发送电子邮件](https://meta.discourse.org/t/unable-to-send-email-from-my-forum/234445)

<div class="topic-metadata">

**Author:** [@Poorvi\_Arora](https://meta.discourse.org/u/Poorvi_Arora)\
**回覆:** 4\
**Last updated:** [2022年八月9日 10:51 UTC](https://meta.discourse.org/t/unable-to-send-email-from-my-forum/234445 "2022-08-09T10:51:51Z")

</div>

Discourse 安装在一台 Ubuntu 20.04 计算机上。一切运行顺利。但是，我们在电子邮件触发器方面遇到了麻烦；电子邮件未发送或接收。我们正在运行一个基于 docker 容器的……

---

## [尝试停止容器时重建冻结](https://meta.discourse.org/t/rebuild-freezing-when-attempting-to-stop-container/188704)

<div class="topic-metadata">

**Author:** [@ajmuir](https://meta.discourse.org/u/ajmuir)\
**回覆:** 3\
**Last updated:** [2022年八月8日 14:41 UTC](https://meta.discourse.org/t/rebuild-freezing-when-attempting-to-stop-container/188704 "2022-08-08T14:41:17Z")

</div>

我今天收到了第一个“您正在运行旧版本的 Discourse 映像。通过 Web UI 的升级将被禁用，直到您运行最新的映像”消息，我认为我弄坏了我的安装。 我遵循了说明……

---

## [最近安装过程中出现各种“错误”](https://meta.discourse.org/t/various-errors-during-recent-install/235361)

<div class="topic-metadata">

**Author:** [@epskpsdsc](https://meta.discourse.org/u/epskpsdsc)\
**回覆:** 0\
**Last updated:** [2022年八月7日 11:24 UTC](https://meta.discourse.org/t/various-errors-during-recent-install/235361 "2022-08-07T11:24:29Z")

</div>

在干净的 Ubuntu 20.04.4 LTS 和当前的 Docker 上安装 Discourse 2.0.20220720-0049 后，我注意到安装日志中有一些“错误”和警告，我想提请注意。 我使用了默认的启动……

---

## [Digital Ocean 中使用 Nginx 重定向 URL](https://meta.discourse.org/t/redirect-url-with-nginx-in-digital-ocean/235297)

<div class="topic-metadata">

**Author:** [@Alshain](https://meta.discourse.org/u/Alshain)\
**回覆:** 14\
**Last updated:** [2022年八月7日 11:13 UTC](https://meta.discourse.org/t/redirect-url-with-nginx-in-digital-ocean/235297 "2022-08-07T11:13:01Z")

</div>

我在 Digital Ocean 上有一个现成的 Discourse 设置。 我想从 Flarum 重定向到 Discourse，但我找不到 nginx 文件夹。 我在 /etc/ - /usr/ 文件夹中查找过，但找不到它。我找不到它是因为 Do……

---

## [合并两个论坛的问题](https://meta.discourse.org/t/problem-for-merge-two-forum/225189)

<div class="topic-metadata">

**Author:** [@McFly](https://meta.discourse.org/u/McFly)\
**回覆:** 12\
**Last updated:** [2022年五月12日 16:18 UTC](https://meta.discourse.org/t/problem-for-merge-two-forum/225189 "2022-05-12T16:18:00Z")

</div>

你好， 我正在通过此处的教程将两个论坛合并。 我在执行命令 \`gunzip \< /path/to/data/other-2018-08-02-134227-v2018xxx.tar.gz | psql -d copyme\` 时遇到问题。 它返回了许多行，其中…

---

## [设置失败：无法分配内存](https://meta.discourse.org/t/setup-fails-cannot-allocate-memory/235149)

<div class="topic-metadata">

**Author:** [@rsx](https://meta.discourse.org/u/rsx)\
**回覆:** 3\
**Last updated:** [2022年八月4日 19:28 UTC](https://meta.discourse.org/t/setup-fails-cannot-allocate-memory/235149 "2022-08-04T19:28:26Z")

</div>

您好， 我是discourse的新手，这是我第一次尝试安装。第一次尝试甚至没有创建数据库，第二次尝试（删除所有内容并从头开始）再次抱怨： 2022-08-04 18:5…

---

## [无法设置管理员帐户](https://meta.discourse.org/t/cant-setup-admin-account/235027)

<div class="topic-metadata">

**Author:** [@grousx](https://meta.discourse.org/u/grousx)\
**回覆:** 8\
**Last updated:** [2022年八月3日 19:11 UTC](https://meta.discourse.org/t/cant-setup-admin-account/235027 "2022-08-03T19:11:33Z")

</div>

我已成功安装 Discourse。我可以通过域名进入设置页面，但在设置用户名和密码部分，我点击“注册”按钮但没有重定向。

---

## [Discourse新版本更新失败](https://meta.discourse.org/t/failed-to-update-discourse-new-version/234801)

<div class="topic-metadata">

**Author:** [@William\_Gary](https://meta.discourse.org/u/William_Gary)\
**回覆:** 4\
**Last updated:** [2022年八月3日 01:57 UTC](https://meta.discourse.org/t/failed-to-update-discourse-new-version/234801 "2022-08-03T01:57:59Z")

</div>

大家好，我刚开始用 Discourse 搭建社区，有人告诉我需要在 SSH 中更新最新的 Discourse 版本。我检查并遵循了“如何手动更新 Discourse 和 Docker 镜像到最新版本……”的说明……

---

## [Redis 的安全存储有必要吗？](https://meta.discourse.org/t/is-secure-storage-for-redis-necessary/234701)

<div class="topic-metadata">

**Author:** [@tobi1](https://meta.discourse.org/u/tobi1)\
**回覆:** 7\
**Last updated:** [2022年八月2日 21:48 UTC](https://meta.discourse.org/t/is-secure-storage-for-redis-necessary/234701 "2022-08-02T21:48:59Z")

</div>

我们目前正尝试通过 Kubernetes 在 GCP 中使用 Helm chart 安装 Discourse，请参见此处。 现在，由于它也必须涵盖我们的生产环境，因此我们不能丢失任何导入 Discourse 的内容。当然，我们将使用…

---

## [libv8-node 安装问题](https://meta.discourse.org/t/problems-with-libv8-node-on-installation/230835)

<div class="topic-metadata">

**Author:** [@BlockyBlockling](https://meta.discourse.org/u/BlockyBlockling)\
**回覆:** 7\
**Last updated:** [2022年八月1日 19:36 UTC](https://meta.discourse.org/t/problems-with-libv8-node-on-installation/230835 "2022-08-01T19:36:42Z")

</div>

您好 Discourse 团队， 我目前正尝试在我的 Raspberry Pi 4B 上安装我的开发环境。 当我尝试启动 rails 服务器时，它显示 我已经尝试通过 gem 和 bundle 安装它，它说安装……

---

## [无法禁用速率限制](https://meta.discourse.org/t/unable-to-disable-the-rate-limit/234794)

<div class="topic-metadata">

**Author:** [@mtuersch](https://meta.discourse.org/u/mtuersch)\
**回覆:** 2\
**Last updated:** [2022年八月2日 13:09 UTC](https://meta.discourse.org/t/unable-to-disable-the-rate-limit/234794 "2022-08-02T13:09:59Z")

</div>

我需要禁用速率限制以支持批量导入。根据“Discourse 中的全局速率限制和节流”，我认为通过从 app.yml 中删除“templates/web.ratelimited.template.yml”行以及……

---

## [Readiness probe failed in helm chart installation](https://meta.discourse.org/t/readiness-probe-failed-in-helm-chart-installation/234707)

<div class="topic-metadata">

**Author:** [@tobi1](https://meta.discourse.org/u/tobi1)\
**回覆:** 1\
**Last updated:** [2022年八月1日 17:44 UTC](https://meta.discourse.org/t/readiness-probe-failed-in-helm-chart-installation/234707 "2022-08-01T17:44:32Z")

</div>

我目前正在使用 Helm charts 安装 Discourse。这里的部署是在 Terraform 中进行的，但我希望它是可以理解的。 resource "helm\_release" "discourse" { name = "discourse" namespace …

---

## [没有激活邮件](https://meta.discourse.org/t/no-activation-email/234544)

<div class="topic-metadata">

**Author:** [@2TapPrince](https://meta.discourse.org/u/2TapPrince)\
**回覆:** 10\
**Last updated:** [2022年八月1日 04:44 UTC](https://meta.discourse.org/t/no-activation-email/234544 "2022-08-01T04:44:07Z")

</div>

你好， 我设置了一个 DigitalOcean Discourse Docker 实例。设置进行得很顺利，但是……我似乎无法让账户创建生效，因为我没有收到验证电子邮件。 我的设置如下 …

---

## [用户注册时无法发送电子邮件！](https://meta.discourse.org/t/can-not-sent-email-on-user-sign-up/234254)

<div class="topic-metadata">

**Author:** [@binh\_nguyen\_ndb](https://meta.discourse.org/u/binh_nguyen_ndb)\
**回覆:** 1\
**Last updated:** [2022年七月29日 04:14 UTC](https://meta.discourse.org/t/can-not-sent-email-on-user-sign-up/234254 "2022-07-29T04:14:16Z")

</div>

大家好， 我通过在 makert 应用程序上使用 bitnami 在 GCP 上安装了 Discourse。 Discourse 版本为：2.8.5 我在 /opt/bitnami/discourse/config/discourse.conf 中配置了 SMTP，设置如下： smtp\_address = 's…

---

## [S3备份无法与EC2 IAM配合使用](https://meta.discourse.org/t/s3-backup-not-working-with-ec2-iam/234191)

<div class="topic-metadata">

**Author:** [@paresy](https://meta.discourse.org/u/paresy)\
**回覆:** 3\
**Last updated:** [2022年七月28日 11:24 UTC](https://meta.discourse.org/t/s3-backup-not-working-with-ec2-iam/234191 "2022-07-28T11:24:23Z")

</div>

我认为我已经搜索并学习了关于此问题的所有主题和教程。 当我尝试打开“备份”页面时，我总是收到此错误： 尝试加载 /admin/backups.json 时出错 当我打开……

---

## [使用 Amazon SES 的 SMTP 凭据发送电子邮件有效……但 Discourse 不行](https://meta.discourse.org/t/sending-emails-with-smtp-credentials-using-amazon-ses-works-but-not-from-discourse/233795)

<div class="topic-metadata">

**Author:** [@Canapin](https://meta.discourse.org/u/Canapin)\
**回覆:** 9\
**Last updated:** [2022年七月24日 13:54 UTC](https://meta.discourse.org/t/sending-emails-with-smtp-credentials-using-amazon-ses-works-but-not-from-discourse/233795 "2022-07-24T13:54:44Z")

</div>

我已经配置了 Amazon SES。 我已经脱离了沙盒环境，这意味着我可以向未经验证的地址发送电子邮件。 摘自 Amazon SES 文档： 当您的账户脱离沙盒环境后，您可以向任何收件人发送电子邮件，无论……

---

## [Beta/tests-passed 样本容器未启动](https://meta.discourse.org/t/beta-tests-passed-sample-containers-do-not-start/233775)

<div class="topic-metadata">

**Author:** [@Cintia\_Del\_Rio](https://meta.discourse.org/u/Cintia_Del_Rio)\
**回覆:** 12\
**Last updated:** [2022年七月26日 02:53 UTC](https://meta.discourse.org/t/beta-tests-passed-sample-containers-do-not-start/233775 "2022-07-26T02:53:13Z")

</div>

在我陪您踏上这段旅程之前，请注意，虽然此错误已在此论坛中提及两次（一次和两次），但“重建数据容器”的解决方案无效。我正在处理完整…

---

## [forum.abc.com.au 上的 Discourse 版本：未找到](https://meta.discourse.org/t/discourse-version-at-forum-abc-com-au-not-found/124016)

<div class="topic-metadata">

**Author:** [@Umashankar\_Ankuri](https://meta.discourse.org/u/Umashankar_Ankuri)\
**回覆:** 15\
**Last updated:** [2022年七月25日 23:33 UTC](https://meta.discourse.org/t/discourse-version-at-forum-abc-com-au-not-found/124016 "2022-07-25T23:33:41Z")

</div>

通过 GitHub 上的官方指南安装了 Discourse。 一切顺利，但在访问论坛时出现 502 错误。 尝试检查 Rails 生产日志，但未发现 production\_error 或 sidekiq 日志。 已执行…

---

## [NVT 和 CVE 的管理](https://meta.discourse.org/t/management-of-nvts-and-cves/233843)

<div class="topic-metadata">

**Author:** [@klp](https://meta.discourse.org/u/klp)\
**回覆:** 7\
**Last updated:** [2022年七月25日 05:25 UTC](https://meta.discourse.org/t/management-of-nvts-and-cves/233843 "2022-07-25T05:25:45Z")

</div>

你好， 我们有一个第三方网络安全平台，它会不断扫描我们所有域名的漏洞，我托管在DigitalOcean上的 Discourse 服务器（运行 2.9.0.beta7）正在标记以下 NVTs 和 CVE。A……

---

## [扩展 Discourse](https://meta.discourse.org/t/scaling-discourse/233817)

<div class="topic-metadata">

**Author:** [@fuse](https://meta.discourse.org/u/fuse)\
**回覆:** 5\
**Last updated:** [2022年七月24日 20:47 UTC](https://meta.discourse.org/t/scaling-discourse/233817 "2022-07-24T20:47:11Z")

</div>

我正在我的 discourse 网站上进行一次关于内容的非常有意思的讨论，这可能会显著改变流量。 我目前使用的是 1GB RAM、1vCPU、40GB SSD 的实例。 它今天只是一个非常小的社区……

---

## [不寻常的港口暴露](https://meta.discourse.org/t/untypical-expose-of-ports/233729)

<div class="topic-metadata">

**Author:** [@Jagster](https://meta.discourse.org/u/Jagster)\
**回覆:** 0\
**Last updated:** [2022年七月23日 09:31 UTC](https://meta.discourse.org/t/untypical-expose-of-ports/233729 "2022-07-23T09:31:31Z")

</div>

长话短说，我只是在浏览我的选项，以进行一次快速的急救式修复。 Discourse 能否仅使用其一侧的端口 80 和 443（这是否意味着 Discourse 使用 Docker 的端口 80/443）？ 我的意思是，我能否……

---

## [UI在短时间内随机失败](https://meta.discourse.org/t/ui-randomly-fails-during-a-short-period/232293)

<div class="topic-metadata">

**Author:** [@gmoirod](https://meta.discourse.org/u/gmoirod)\
**回覆:** 5\
**Last updated:** [2022年七月22日 11:45 UTC](https://meta.discourse.org/t/ui-randomly-fails-during-a-short-period/232293 "2022-07-22T11:45:09Z")

</div>

你好！ 我安装了我自己的“稳定版”Discourse，使用了外部的Postgres和Redis。 关于架构的说明：在Azure中，有1个负载均衡器，1台托管Discourse容器的VM，带有用于备份和图片的NFS共享……

---

## [如何下载和安装 Discourse](https://meta.discourse.org/t/how-to-download-and-install-discourse/91488)

<div class="topic-metadata">

**Author:** [@pbart](https://meta.discourse.org/u/pbart)\
**回覆:** 8\
**Last updated:** [2022年七月21日 07:19 UTC](https://meta.discourse.org/t/how-to-download-and-install-discourse/91488 "2022-07-21T07:19:54Z")

</div>

你好，我是新用户，但我喜欢 Discourse。我有一些问题。 Discourse 是免费的吗？ 我可以下载它吗？ 我有托管服务提供商的托管服务，是否可以在该托管服务上进行经典安装？ 谢谢

---

## [在现有EC2服务器上安装时遇到问题](https://meta.discourse.org/t/problems-installing-on-existing-ec2-server/233098)

<div class="topic-metadata">

**Author:** [@greg\_c](https://meta.discourse.org/u/greg_c)\
**回覆:** 9\
**Last updated:** [2022年七月17日 16:22 UTC](https://meta.discourse.org/t/problems-installing-on-existing-ec2-server/233098 "2022-07-17T16:22:13Z")

</div>

说真的，我从没想过仅仅安装一个论坛软件就会毁掉我的亚马逊EC2服务器。 我现在甚至都无法连接到它。 它到底在干什么？

---

## [Vbulletin4 导入 - 永久链接问题](https://meta.discourse.org/t/vbulletin4-import-permalink-issue/137270)

<div class="topic-metadata">

**Author:** [@steven\_so](https://meta.discourse.org/u/steven_so)\
**回覆:** 7\
**Last updated:** [2022年七月15日 21:22 UTC](https://meta.discourse.org/t/vbulletin4-import-permalink-issue/137270 "2022-07-15T21:22:34Z")

</div>

我缺少拼图的最后部分。 正在处理帖子... 2480 / 2480 (100.0%) 正在创建永久链接文件... 回溯（最近一次调用在最后）： 3: 来自 script/import\_scripts/vbulletin.rb:942:in \`main' 2: 来自...

---

## [无法在Bitnami镜像上安装data-explorer](https://meta.discourse.org/t/cant-install-data-explorer-on-bitnami-image/249459)

<div class="topic-metadata">

**Author:** [@Lexias](https://meta.discourse.org/u/Lexias)\
**回覆:** 2\
**Last updated:** [2022年七月15日 17:10 UTC](https://meta.discourse.org/t/cant-install-data-explorer-on-bitnami-image/249459 "2022-07-15T17:10:31Z")

</div>

你好！我正在尝试在容器上安装您的插件 (bitnami/discourse)。但是，我无法使用以下命令预编译资源：RAILS\_ENV=production bundle exec rake assets:precompile。每次都因以下错误而失败：NameErr…

---

## [致命错误：参数“@”不明确：未知的修订版本或工作树中不存在的路径](https://meta.discourse.org/t/fatal-ambiguous-argument-unknown-revision-or-path-not-in-the-working-tree/115235)

<div class="topic-metadata">

**Author:** [@skygunner](https://meta.discourse.org/u/skygunner)\
**回覆:** 3\
**Last updated:** [2019年四月16日 15:24 UTC](https://meta.discourse.org/t/fatal-ambiguous-argument-unknown-revision-or-path-not-in-the-working-tree/115235 "2019-04-16T15:24:07Z")

</div>

测试部署出错，在发布 launcher 重建应用时： fatal: 参数 '@' 模糊不清：未知的修订版本或工作树中不存在的路径。 使用 '--' 来区分路径和修订版本，例如： 'git \[

---

## [最新升级严重故障，论坛宕机](https://meta.discourse.org/t/latest-upgrade-hard-fail-forum-down/232894)

<div class="topic-metadata">

**Author:** [@L30110](https://meta.discourse.org/u/L30110)\
**回覆:** 7\
**Last updated:** [2022年七月14日 19:03 UTC](https://meta.discourse.org/t/latest-upgrade-hard-fail-forum-down/232894 "2022-07-14T19:03:52Z")

</div>

大家好。今天早上我收到了典型的升级提示，但过程在中间失败了。我刚尝试从命令行进行手动升级，但也失败了。在此次升级之前一切都还好，...

---

## [将 Discourse 作为其他 SaaS 或许可产品的一部分进行分发](https://meta.discourse.org/t/distribute-discourse-as-part-of-another-saas-or-licensed-product/232617)

<div class="topic-metadata">

**Author:** [@nandakvi](https://meta.discourse.org/u/nandakvi)\
**回覆:** 1\
**Last updated:** [2022年七月14日 00:26 UTC](https://meta.discourse.org/t/distribute-discourse-as-part-of-another-saas-or-licensed-product/232617 "2022-07-14T00:26:22Z")

</div>

您好， 如果我有一个知识产权归某个组织所有的授权产品，可以将Discourse（GNU许可下的开源软件）包含在此授权产品中，并分发或包含在SaaS产品中吗？ 谢谢， N…

---

## [UFW也会限制Discourse吗？](https://meta.discourse.org/t/will-ufw-limit-discourse-too/231873)

<div class="topic-metadata">

**Author:** [@Jagster](https://meta.discourse.org/u/Jagster)\
**回覆:** 22\
**Last updated:** [2022年七月11日 10:19 UTC](https://meta.discourse.org/t/will-ufw-limit-discourse-too/231873 "2022-07-11T10:19:12Z")

</div>

Discourse 如何绕过 UFW？我只启用了 22 端口，所以其他所有端口都应该关闭。但论坛还是可以正常工作。这是怎么回事？ DigitalOcean 虚拟机，但这应该没什么关系。而且不是一键安装……

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

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