# Self-hosting

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

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

**Page:** 45

---

## [中国境内升级因git问题失败](https://meta.discourse.org/t/upgrade-from-within-china-fails-due-to-git-issues/198799)

<div class="topic-metadata">

**Author:** [@leoniscsem](https://meta.discourse.org/u/leoniscsem)\
**回覆:** 18\
**Last updated:** [2023年七月12日 05:00 UTC](https://meta.discourse.org/t/upgrade-from-within-china-fails-due-to-git-issues/198799 "2023-07-12T05:00:39Z")

</div>

我们在 Aliyun/Alibaba 的 Ubuntu 20.04 服务器上运行了一个 Discourse 实例，并且与 Git 相关的所有事情一样，我们由于翻墙而面临问题。大多数时候，手动使用 launcher rebuild app 进行升级……

---

## [Discourse Docker 安装是否有全局设置的配置文件？](https://meta.discourse.org/t/with-a-discourse-docker-installation-is-there-a-config-file-for-the-global-settings/271438)

<div class="topic-metadata">

**Author:** [@dbitouze](https://meta.discourse.org/u/dbitouze)\
**回覆:** 1\
**Last updated:** [2023年七月12日 17:00 UTC](https://meta.discourse.org/t/with-a-discourse-docker-installation-is-there-a-config-file-for-the-global-settings/271438 "2023-07-12T17:00:32Z")

</div>

您好， 我们正在通过 Docker 镜像测试 Discourse。我们配置了 Discourse，并希望将我们的设置（语言、徽标等）存储在一个配置文件中，以便在需要重新启动时可以重复使用……

---

## [未收到确认邮件](https://meta.discourse.org/t/not-receiving-confirmation-email/271205)

<div class="topic-metadata">

**Author:** [@doncezar](https://meta.discourse.org/u/doncezar)\
**回覆:** 1\
**Last updated:** [2023年七月11日 16:18 UTC](https://meta.discourse.org/t/not-receiving-confirmation-email/271205 "2023-07-11T16:18:41Z")

</div>

我是第一次使用 Discourse，在设置所有东西时遇到了一些麻烦。 我正在使用 GalaxyGate（VPS 托管提供商）、CloudFlare（用于 DNS）和 ZeptoMail（用于事务性邮件）。 这里您…

---

## [16551个上传中有1个未迁移到S3。数据库'default'的S3迁移失败。](https://meta.discourse.org/t/1-of-16551-uploads-are-not-migrated-to-s3-s3-migration-failed-for-db-default/255772)

<div class="topic-metadata">

**Author:** [@pawelorzech](https://meta.discourse.org/u/pawelorzech)\
**回覆:** 21\
**Last updated:** [2023年七月11日 12:06 UTC](https://meta.discourse.org/t/1-of-16551-uploads-are-not-migrated-to-s3-s3-migration-failed-for-db-default/255772 "2023-07-11T12:06:15Z")

</div>

你好， 我正在尝试迁移到 S3，但我的 migrate\_to\_s3 失败了。 正在更新数据库中的 URL... 正在移除旧的优化图像... 正在将所有包含灯箱的帖子标记为重新烘焙... 9756 个帖子已被标记为...

---

## [Discourse 大小](https://meta.discourse.org/t/discourse-size/271193)

<div class="topic-metadata">

**Author:** [@doncezar](https://meta.discourse.org/u/doncezar)\
**回覆:** 2\
**Last updated:** [2023年七月11日 08:31 UTC](https://meta.discourse.org/t/discourse-size/271193 "2023-07-11T08:31:59Z")

</div>

我刚在 Ubuntu VPS 上安装了 Discourse，不得不重建了几次，因为我一直搞砸一些事情，比如 SMTP 凭据和管理员邮箱地址，但我注意到我的 V... 上占用了超过 12GB 的空间...

---

## [大 vBulletin 论坛迁移项目](https://meta.discourse.org/t/big-vbulletin-forum-migration-project/271105)

<div class="topic-metadata">

**Author:** [@Wobak](https://meta.discourse.org/u/Wobak)\
**回覆:** 2\
**Last updated:** [2023年七月10日 13:24 UTC](https://meta.discourse.org/t/big-vbulletin-forum-migration-project/271105 "2023-07-10T13:24:07Z")

</div>

你好， 我正在为拥有海量（1200 万+ 帖子，10 万用户）的 vBulletin 4 论坛寻找一个未来。 我目前正在研究 Discourse 作为一种选择，但脑海中浮现出多个问题，而且我似乎找不到……

---

## [Hetzner删除了我的账户和服务器，我一无所有。无所有。该怎么办？](https://meta.discourse.org/t/hetzner-deleted-my-account-my-server-and-i-was-left-with-nothing-what-to-do/270518)

<div class="topic-metadata">

**Author:** [@danielabc](https://meta.discourse.org/u/danielabc)\
**回覆:** 30\
**Last updated:** [2023年七月9日 20:57 UTC](https://meta.discourse.org/t/hetzner-deleted-my-account-my-server-and-i-was-left-with-nothing-what-to-do/270518 "2023-07-09T20:57:45Z")

</div>

各位，我非常绝望，我不知道该怎么办，因为这家糟糕又业余的公司 Hetzner 一点忙都帮不上，我来到 Meta 这里看看是否有人能帮我 事情的概要是这样的： 我一直在使用 hetzner ...

---

## [事务性邮件服务 (开源)](https://meta.discourse.org/t/transactional-email-service-open-source/213122)

<div class="topic-metadata">

**Author:** [@yhh9xdq7d](https://meta.discourse.org/u/yhh9xdq7d)\
**回覆:** 13\
**Last updated:** [2023年七月9日 09:19 UTC](https://meta.discourse.org/t/transactional-email-service-open-source/213122 "2023-07-09T09:19:51Z")

</div>

你好，我看到大家都在推荐专用邮件服务。你们有人使用或尝试过开源替代方案吗？例如 Postal 或 Cuttlefish。 当然，使用自己的服务器至少可以处理传出的邮件……

---

## [推荐的/最佳实践备份方案](https://meta.discourse.org/t/what-is-the-recommend-best-practise-backup-setup/270994)

<div class="topic-metadata">

**Author:** [@sjjh](https://meta.discourse.org/u/sjjh)\
**回覆:** 2\
**Last updated:** [2023年七月9日 00:04 UTC](https://meta.discourse.org/t/what-is-the-recommend-best-practise-backup-setup/270994 "2023-07-09T00:04:44Z")

</div>

我正在本地的 proxmox pve 上以 lxc 容器的形式运行 discourse 实例。我还有一个本地的 NAS（nfs 和 samba），它会定期备份到另一个位置。 您将如何实施 disco 的备份……

---

## [为 Cloudflare 的上传子域名](https://meta.discourse.org/t/uploads-subdomain-for-cloudflare/270939)

<div class="topic-metadata">

**Author:** [@dadberg](https://meta.discourse.org/u/dadberg)\
**回覆:** 3\
**Last updated:** [2023年七月7日 22:19 UTC](https://meta.discourse.org/t/uploads-subdomain-for-cloudflare/270939 "2023-07-07T22:19:18Z")

</div>

您好，根据多项投诉，Cloudflare 可能会导致 Discourse 出问题，请问是否有办法为上传设置一个单独的子域名，然后用 Cloudflare 来托管，以避免任何问题，例如：https://uploads.example.com/？

---

## [配置 Discourse - 环境 AWS Linux 2 AMI 和 Apache2 (httpd)](https://meta.discourse.org/t/configure-discourse-environment-aws-linux-2-ami-and-apache2-httpd/269022)

<div class="topic-metadata">

**Author:** [@Matthew\_Lucas](https://meta.discourse.org/u/Matthew_Lucas)\
**回覆:** 3\
**Last updated:** [2023年七月7日 17:51 UTC](https://meta.discourse.org/t/configure-discourse-environment-aws-linux-2-ami-and-apache2-httpd/269022 "2023-07-07T17:51:26Z")

</div>

大家好 我已经查阅了文档，阅读了已发布的配置设置和建议，并尝试根据我的独特情况进行修改。 对于看起来很简单的事情，它却是...

---

## [RDS上创建GIN索引的会话周期性出现大量Lock:relation等待](https://meta.discourse.org/t/discourse-on-rds-periodically-results-into-many-lock-relation-waits-for-create-gin-index-sessions/270894)

<div class="topic-metadata">

**Author:** [@venkytn](https://meta.discourse.org/u/venkytn)\
**回覆:** 3\
**Last updated:** [2023年七月7日 16:51 UTC](https://meta.discourse.org/t/discourse-on-rds-periodically-results-into-many-lock-relation-waits-for-create-gin-index-sessions/270894 "2023-07-07T16:51:39Z")

</div>

我们周期性地看到在 post\_search\_data 上创建 GIN 索引会在性能洞察中导致大量 Lock:relations。终止创建此索引的会话会释放所有被阻塞的会话。有趣的是……

---

## [迁移到另一个VPS提供商](https://meta.discourse.org/t/moving-to-another-vps-provider/268698)

<div class="topic-metadata">

**Author:** [@BogacErkan](https://meta.discourse.org/u/BogacErkan)\
**回覆:** 44\
**Last updated:** [2023年七月6日 18:05 UTC](https://meta.discourse.org/t/moving-to-another-vps-provider/268698 "2023-07-06T18:05:35Z")

</div>

首先，我非常感谢有这样一个出色的平台。我很享受使用 Discourse 的每一刻，希望迁移到另一个平台不是唯一的选择。 我们在土耳其有一个小型的酿造社区，在……

---

## [如何在不升级最新代码的情况下更改SMTP设置](https://meta.discourse.org/t/how-to-change-smtp-settings-without-upgrading-to-the-latest-code/270738)

<div class="topic-metadata">

**Author:** [@Nikki\_Locke](https://meta.discourse.org/u/Nikki_Locke)\
**回覆:** 2\
**Last updated:** [2023年七月6日 10:09 UTC](https://meta.discourse.org/t/how-to-change-smtp-settings-without-upgrading-to-the-latest-code/270738 "2023-07-06T10:09:43Z")

</div>

是否可以在不重建应用程序（从而不升级到尚未经过我们测试流程的最新代码版本）的情况下更改 Discourse 中的 SMTP 设置？

---

## [Discourse 是否支持 redis username?](https://meta.discourse.org/t/does-discourse-supports-redis-username/270725)

<div class="topic-metadata">

**Author:** [@some1](https://meta.discourse.org/u/some1)\
**回覆:** 1\
**Last updated:** [2023年七月6日 08:39 UTC](https://meta.discourse.org/t/does-discourse-supports-redis-username/270725 "2023-07-06T08:39:53Z")

</div>

我在论坛上搜索过，但一无所获。另外，全局变量中也没有提到 Redis 用户名。连接 Redis 是否只能使用默认用户？

---

## [在一个 Droplet (Digital ocean) 上使 Discourse, Moodle (edu), DAO (Aragon) 协同工作](https://meta.discourse.org/t/on-one-droplet-digital-ocean-make-discourse-moodle-edu-dao-aragon-work-together/270646)

<div class="topic-metadata">

**Author:** [@ValGun](https://meta.discourse.org/u/ValGun)\
**回覆:** 1\
**Last updated:** [2023年七月5日 17:14 UTC](https://meta.discourse.org/t/on-one-droplet-digital-ocean-make-discourse-moodle-edu-dao-aragon-work-together/270646 "2023-07-05T17:14:02Z")

</div>

你好！ 我计划拥有子域名（“edu”和“dao”）并在上面安装：1. Moodle 用于我们 Discourse 用户的教育目的 2. DAO 指向 Aragon，用于资金、代币创建和治理、我们的…透明度

---

## [预编译错误 版本 3.0.4](https://meta.discourse.org/t/pre-compilation-error-version-3-0-4/268914)

<div class="topic-metadata">

**Author:** [@mdhont](https://meta.discourse.org/u/mdhont)\
**回覆:** 4\
**Last updated:** [2023年七月4日 09:16 UTC](https://meta.discourse.org/t/pre-compilation-error-version-3-0-4/268914 "2023-07-04T09:16:57Z")

</div>

在 3.0.4 版本中，由于语法错误，资源预编译似乎已损坏。尝试预编译资源时，我收到此错误： RAILS\_ENV=production SKIP\_DB\_AND\_REDIS=1 DONT\_PRECOMPILE\_CSS=1 bundle exec rake --…

---

## [恢复失败 - 正在提取转储文件，但文件或目录不存在](https://meta.discourse.org/t/restore-failure-extracting-dump-file-no-such-file-or-directory/270239)

<div class="topic-metadata">

**Author:** [@megalithicrock](https://meta.discourse.org/u/megalithicrock)\
**回覆:** 15\
**Last updated:** [2023年七月4日 09:08 UTC](https://meta.discourse.org/t/restore-failure-extracting-dump-file-no-such-file-or-directory/270239 "2023-07-04T09:08:55Z")

</div>

大家好 - 正在尝试从托管的 Discourse 迁移到自托管。已经进行了许多成功的测试运行，但当我尝试进行实际的迁移并包含所有上传时，在几分钟后……

---

## [在 Openshift 上安装 Discourse 时出现问题](https://meta.discourse.org/t/problem-when-installing-discourse-on-openshift/270377)

<div class="topic-metadata">

**Author:** [@Amine\_741](https://meta.discourse.org/u/Amine_741)\
**回覆:** 2\
**Last updated:** [2023年七月3日 17:43 UTC](https://meta.discourse.org/t/problem-when-installing-discourse-on-openshift/270377 "2023-07-03T17:43:53Z")

</div>

你好， 我正在尝试使用 helm chart 在 Openshift 上安装 Discourse。当我尝试通过 DNS 访问应用程序时，我看到五个点在持续加载。 有人遇到过同样的问题吗？我正在挣扎。

---

## [为什么磁盘显示已满？](https://meta.discourse.org/t/why-does-the-disk-appear-full/270314)

<div class="topic-metadata">

**Author:** [@EchoBilisim](https://meta.discourse.org/u/EchoBilisim)\
**回覆:** 2\
**Last updated:** [2023年七月2日 17:19 UTC](https://meta.discourse.org/t/why-does-the-disk-appear-full/270314 "2023-07-02T17:19:59Z")

</div>

您好，我正在为我的两个站点使用 Discourse。它的磁盘容量为 30 GB。尽管我没有进行任何安装，但磁盘似乎已满，我想知道为什么？我没有在我的站点上上传图片和视频之类的内容……

---

## [安装 Discourse 的帮助](https://meta.discourse.org/t/need-help-with-installing-discourse/270283)

<div class="topic-metadata">

**Author:** [@Amrit\_Singh](https://meta.discourse.org/u/Amrit_Singh)\
**回覆:** 3\
**Last updated:** [2023年七月1日 19:44 UTC](https://meta.discourse.org/t/need-help-with-installing-discourse/270283 "2023-07-01T19:44:57Z")

</div>

我已经安装 Discourse 超过 30-40 次了。 首先，我使用 Cloudflare 的 Flexible SSL 进行安装，Discourse 安装完成，注册了管理员，收到了邮件，打开链接后出现错误，无法点击……

---

## [Discourse论坛更新时出现问题](https://meta.discourse.org/t/problem-when-updating-discourse-forum/269562)

<div class="topic-metadata">

**Author:** [@klein](https://meta.discourse.org/u/klein)\
**回覆:** 20\
**Last updated:** [2023年六月29日 15:14 UTC](https://meta.discourse.org/t/problem-when-updating-discourse-forum/269562 "2023-06-29T15:14:07Z")

</div>

大家好！ 我尝试使用管理员面板中发布的链接更新 discourse 论坛，但遇到了此错误。整个论坛都消失了。我现在应该怎么做才能重置更新？如果有人能提供帮助，将不胜感激……

---

## [如何在 discourse 中替换配置的 smtp 服务器？](https://meta.discourse.org/t/how-can-i-replace-the-smtp-server-configured-in-discourse/269214)

<div class="topic-metadata">

**Author:** [@Daviz](https://meta.discourse.org/u/Daviz)\
**回覆:** 15\
**Last updated:** [2023年六月28日 15:41 UTC](https://meta.discourse.org/t/how-can-i-replace-the-smtp-server-configured-in-discourse/269214 "2023-06-28T15:41:06Z")

</div>

你好。 我在 DigitalOcean 托管服务器上安装了开源的 Discourse。使用的 SMTP 服务器是 Mailgun 免费版。 Discourse 上安装的 Mailgun 免费版 SMTP 服务器无法发送邮件，因此我想更换 SMTP 服务器……

---

## [ARM64 生产级可靠性](https://meta.discourse.org/t/arm64-production-level-reliability/269246)

<div class="topic-metadata">

**Author:** [@dadberg](https://meta.discourse.org/u/dadberg)\
**回覆:** 1\
**Last updated:** [2023年六月28日 14:34 UTC](https://meta.discourse.org/t/arm64-production-level-reliability/269246 "2023-06-28T14:34:22Z")

</div>

你好，希望你一切都好， 一如既往，Discourse 比行业领先许多，昨天我测试了向基于 ARM 的服务器进行全面迁移，并且成功了！每月节省数百美元……

---

## [关于AWS的讨论？](https://meta.discourse.org/t/discourse-on-aws/248678)

<div class="topic-metadata">

**Author:** [@lakshya](https://meta.discourse.org/u/lakshya)\
**回覆:** 18\
**Last updated:** [2023年六月28日 04:48 UTC](https://meta.discourse.org/t/discourse-on-aws/248678 "2023-06-28T04:48:30Z")

</div>

我浏览了这个官方论坛的许多页面，我有一些疑问需要澄清。请帮助我。 为什么 Discourse 官方不推荐 AWS SES（简单邮件服务），即使它很强大……

---

## [升级到 3.1.0.beta5 后 Discourse 目标响应时间变慢](https://meta.discourse.org/t/discourse-slow-target-response-time-after-upgrading-to-3-1-0-beta5/269577)

<div class="topic-metadata">

**Author:** [@41821](https://meta.discourse.org/u/41821)\
**回覆:** 6\
**Last updated:** [2023年六月27日 06:51 UTC](https://meta.discourse.org/t/discourse-slow-target-response-time-after-upgrading-to-3-1-0-beta5/269577 "2023-06-27T06:51:56Z")

</div>

我们在 AWS 中运行一个 EC2 实例，通过支持的方法安装了 discourse 位于 EC2 实例前面的是一个 ELB（负载均衡器） 最近我们升级到了 Discourse Server 版本 3.1.0.beta5 不久之后……

---

## [新服务器安装失败](https://meta.discourse.org/t/installation-on-new-server-fails/269495)

<div class="topic-metadata">

**Author:** [@daemon](https://meta.discourse.org/u/daemon)\
**回覆:** 4\
**Last updated:** [2023年六月26日 11:15 UTC](https://meta.discourse.org/t/installation-on-new-server-fails/269495 "2023-06-26T11:15:04Z")

</div>

我在新的 VPS 上尝试了一个新安装，并收到以下错误： FAILED -------------------- Pups::ExecError: cd /var/www/discourse && sudo -H -E -u discourse bash -c '&#39; set -o errexit if \[ $(git rev-parse -…

---

## [可以上传照片但无法浏览Amazon S3](https://meta.discourse.org/t/can-upload-photos-but-cant-browse-by-amazon-s3/269590)

<div class="topic-metadata">

**Author:** [@whitewaterdeu](https://meta.discourse.org/u/whitewaterdeu)\
**回覆:** 1\
**Last updated:** [2023年六月26日 02:41 UTC](https://meta.discourse.org/t/can-upload-photos-but-cant-browse-by-amazon-s3/269590 "2023-06-26T02:41:50Z")

</div>

\*\*希思罗机场关闭\*\*: 航班中断预计将持续数日，\*伦敦\*机场管理方表示

---

## [Web server 宕机了 Error code 521](https://meta.discourse.org/t/web-server-is-down-error-code-521/269308)

<div class="topic-metadata">

**Author:** [@Ahmed26](https://meta.discourse.org/u/Ahmed26)\
**回覆:** 7\
**Last updated:** [2023年六月25日 09:21 UTC](https://meta.discourse.org/t/web-server-is-down-error-code-521/269308 "2023-06-25T09:21:15Z")

</div>

我在 Ubuntu 22.04 上安装了它，设置屏幕打不开，可能是什么问题？

---

## [如何在S3存储桶中查找未清除的孤立图像的所有变体？](https://meta.discourse.org/t/how-to-find-all-variations-of-an-unpurged-orphaned-image-in-a-s3-bucket/263776)

<div class="topic-metadata">

**Author:** [@markersocial](https://meta.discourse.org/u/markersocial)\
**回覆:** 2\
**Last updated:** [2023年六月25日 03:32 UTC](https://meta.discourse.org/t/how-to-find-all-variations-of-an-unpurged-orphaned-image-in-a-s3-bucket/263776 "2023-06-25T03:32:20Z")

</div>

所以我遇到了一个删除上传图像的问题。 上传似乎在数据库中不存在，至少从我尝试过的搜索来看是这样。 它们是： rails: Upload.find\_by\_sha1('39b0c58d2d462e6c88d684344a8dd1f09da1ba…

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

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