# Self-hosting

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

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

**Page:** 118

---

## [Two standalone instances on one server?](https://meta.discourse.org/t/two-standalone-instances-on-one-server/60551)

<div class="topic-metadata">

**Author:** [@ChrisBeach](https://meta.discourse.org/u/ChrisBeach)\
**回覆:** 14\
**Last updated:** [2019年八月8日 12:23 UTC](https://meta.discourse.org/t/two-standalone-instances-on-one-server/60551 "2019-08-08T12:23:45Z")

</div>

I’d like to create a second instance of Discourse on my server, which is completely self-contained. It will be another forum entirely. I assume Docker helps us host setups like this, although I’m concerned to understand…

---

## [Discourse 未感知 SSL 终止（混合内容）](https://meta.discourse.org/t/discourse-not-aware-of-ssl-termination-mixed-content/121650)

<div class="topic-metadata">

**Author:** [@Shachar](https://meta.discourse.org/u/Shachar)\
**回覆:** 7\
**Last updated:** [2019年八月8日 07:22 UTC](https://meta.discourse.org/t/discourse-not-aware-of-ssl-termination-mixed-content/121650 "2019-08-08T07:22:43Z")

</div>

网站位于 https://forum.practical-pl.org。 如果您现在访问该网站，您的浏览器会显示“混合内容”警告。这是因为 Docker 正在监听一个 Unix 域套接字，而 NGINX 前端正在重…

---

## [DigitalOcean + Siteground 通过 465 端口发送邮件无效（2525 端口可用）](https://meta.discourse.org/t/digitalocean-siteground-email-via-port-465-won-t-work-2525-will-work/125067)

<div class="topic-metadata">

**Author:** [@PackElend](https://meta.discourse.org/u/PackElend)\
**回覆:** 1\
**Last updated:** [2019年八月7日 00:11 UTC](https://meta.discourse.org/t/digitalocean-siteground-email-via-port-465-won-t-work-2525-will-work/125067 "2019-08-07T00:11:05Z")

</div>

你好， 我在 Digital Ocean 上启动了一个 Discourse Droplet，它本质上就是 Discourse 的 Docker 镜像。 一切运行正常，直到我到达注册步骤。 我们已向 \*\*admin.discourse@ourdomain.coo… 发送了一封激活邮件。

---

## [邮件通知不再发送](https://meta.discourse.org/t/mail-notifications-are-not-sent-anymore/124995)

<div class="topic-metadata">

**Author:** [@lmcthjo](https://meta.discourse.org/u/lmcthjo)\
**回覆:** 5\
**Last updated:** [2019年八月6日 21:53 UTC](https://meta.discourse.org/t/mail-notifications-are-not-sent-anymore/124995 "2019-08-06T21:53:46Z")

</div>

我们使用的是 Discourse 1.9.0 beta15。 邮件通知功能一直正常，直到服务器出现问题（磁盘空间不足）。 在修复该问题后，我们发现通知不再发送（未收到…

---

## [Discourse 托管：是否有集中式页面（如状态页）可查看计划维护事件和事故？](https://meta.discourse.org/t/discourse-hosting-is-there-a-centralized-place-like-a-status-page-i-can-visit-for-scheduled-maintenance-and-incidents/124946)

<div class="topic-metadata">

**Author:** [@shaynad](https://meta.discourse.org/u/shaynad)\
**回覆:** 6\
**Last updated:** [2022年一月6日 12:33 UTC](https://meta.discourse.org/t/discourse-hosting-is-there-a-centralized-place-like-a-status-page-i-can-visit-for-scheduled-maintenance-and-incidents/124946 "2022-01-06T12:33:26Z")

</div>

我正在寻找一个集中化的平台，用于查看 Discourse 的状态（因为我们的数据中心由 Discourse 托管），其中包括任何停机时间、服务监控、计划内维护以及具体的正常运行时间…

---

## [Migadu 邮件出现问题](https://meta.discourse.org/t/having-issues-with-migadu-emails/125023)

<div class="topic-metadata">

**Author:** [@aaronrussell](https://meta.discourse.org/u/aaronrussell)\
**回覆:** 7\
**Last updated:** [2019年八月6日 19:32 UTC](https://meta.discourse.org/t/having-issues-with-migadu-emails/125023 "2019-08-06T19:32:59Z")

</div>

你好， 我在设置 Discourse 以使用我的 SMTP 服务器时遇到了问题（我使用的是 Migadu 作为邮件服务器）。 以下是我正在使用的详细信息： DISCOURSE\_SMTP\_ADDRESS: "smtp.migadu.com" DISCOURSE\_SMTP\_USER\_NAM…

---

## [Xenforo 导入：已存在的主题和帖子 ID](https://meta.discourse.org/t/xenforo-import-pre-existing-topic-post-ids/124858)

<div class="topic-metadata">

**Author:** [@dantreacy](https://meta.discourse.org/u/dantreacy)\
**回覆:** 1\
**Last updated:** [2019年八月5日 16:46 UTC](https://meta.discourse.org/t/xenforo-import-pre-existing-topic-post-ids/124858 "2019-08-05T16:46:23Z")

</div>

大家好， 我们有一个现有的 XenForo 论坛，大约有 25 万条帖子。 几天前，我尝试将其导入 Discourse。 首先，要向所有参与脚本开发的人员表示祝贺，这是迄今为止最顺利的一次导入……

---

## [完成安装需要做什么？](https://meta.discourse.org/t/what-i-need-to-do-for-complete-installation/124878)

<div class="topic-metadata">

**Author:** [@caygri](https://meta.discourse.org/u/caygri)\
**回覆:** 4\
**Last updated:** [2019年八月5日 09:31 UTC](https://meta.discourse.org/t/what-i-need-to-do-for-complete-installation/124878 "2019-08-05T09:31:13Z")

</div>

哎呀， 我有一台安装了 Plesk 的专用服务器，当我尝试启动 docker/base 镜像时，几秒后就会自动关闭。 日志为空，设置中只有少数几个字段……请看一下。 我需要做什么来完成安装……

---

## [请帮我选择 VPS](https://meta.discourse.org/t/help-me-choice-vps/116847)

<div class="topic-metadata">

**Author:** [@Adam\_Eses](https://meta.discourse.org/u/Adam_Eses)\
**回覆:** 3\
**Last updated:** [2019年八月5日 09:22 UTC](https://meta.discourse.org/t/help-me-choice-vps/116847 "2019-08-05T09:22:53Z")

</div>

请告诉我哪里可以购买用于安装 Discourse 的 VPS。 支持比特币支付：slight\_smile: 我曾在 www.lavavps.lt 购买过 4GB VPS，但那里不提供完整的 ROOT 权限，我正在等待退款…… 抱歉我的英语不好……

---

## [本地安装，具备全部功能](https://meta.discourse.org/t/local-installation-with-all-features/124760)

<div class="topic-metadata">

**Author:** [@sudhar99](https://meta.discourse.org/u/sudhar99)\
**回覆:** 2\
**Last updated:** [2019年八月2日 21:44 UTC](https://meta.discourse.org/t/local-installation-with-all-features/124760 "2019-08-02T21:44:39Z")

</div>

我是 Discourse 的新手，在研究适用于我们企业论坛的最佳开源方案时，发现了这个出色的产品。它界面简洁，并集成了大量企业级功能。初步看来……

---

## [Db:migrate 在 discourse-calendar 上失败](https://meta.discourse.org/t/db-migrate-fails-on-discourse-calendar/124229)

<div class="topic-metadata">

**Author:** [@alh](https://meta.discourse.org/u/alh)\
**回覆:** 3\
**Last updated:** [2019年八月1日 14:21 UTC](https://meta.discourse.org/t/db-migrate-fails-on-discourse-calendar/124229 "2019-08-01T14:21:01Z")

</div>

我尝试在服务器上的最新 Discourse 版本（2.4.0.beta2）上安装 Discourse Calendar 插件。但是，db:migrate 失败并报错： rake aborted! NoMethodError: 未定义方法 \`register\_user\_custom\_fiel…

---

## [Discourse 下载](https://meta.discourse.org/t/discourse-download/124101)

<div class="topic-metadata">

**Author:** [@Askland](https://meta.discourse.org/u/Askland)\
**回覆:** 5\
**Last updated:** [2019年八月1日 13:56 UTC](https://meta.discourse.org/t/discourse-download/124101 "2019-08-01T13:56:21Z")

</div>

你好。我不确定这个引擎是否收费？我想建立一个问答网站。

---

## [文件 'containers/app.yml' 不可写](https://meta.discourse.org/t/file-containers-app-yml-is-unwritable/124592)

<div class="topic-metadata">

**Author:** [@rajesh.saharan](https://meta.discourse.org/u/rajesh.saharan)\
**回覆:** 10\
**Last updated:** [2019年八月1日 11:10 UTC](https://meta.discourse.org/t/file-containers-app-yml-is-unwritable/124592 "2019-08-01T11:10:14Z")

</div>

我正在按照此指南在 AWS EC2 实例上安装 Discourse。 除 Elasticache（未使用单独的 Redis）外，已完成所有步骤。 完成 Discourse 设置后，我需要编辑我的 app.yml 以更改 RD…

---

## [“您的 Docker 安装未使用支持的存储驱动程序。”](https://meta.discourse.org/t/your-docker-installation-is-not-using-a-supported-storage-driver/124131)

<div class="topic-metadata">

**Author:** [@Maynard](https://meta.discourse.org/u/Maynard)\
**回覆:** 8\
**Last updated:** [2019年八月1日 01:55 UTC](https://meta.discourse.org/t/your-docker-installation-is-not-using-a-supported-storage-driver/124131 "2019-08-01T01:55:38Z")

</div>

您好，我是首次使用 Discourse 的用户，技术知识有限。 我按照官方说明在 Lightsail Ubuntu 18.04.2 上安装了 Discourse。论坛已顺利上线运行，没有任何问题。 现在尝试安装一个插件：Instal…

---

## [Digital Ocean 安装与 Bitnami 的区别](https://meta.discourse.org/t/difference-between-digital-ocean-install-and-bitnami/124461)

<div class="topic-metadata">

**Author:** [@PaigeLynn](https://meta.discourse.org/u/PaigeLynn)\
**回覆:** 11\
**Last updated:** [2019年七月31日 02:36 UTC](https://meta.discourse.org/t/difference-between-digital-ocean-install-and-bitnami/124461 "2019-07-31T02:36:34Z")

</div>

一个通用问题：DigitalOcean 安装版与 AWS 上由 Bitnami 认证的 Discourse 有什么区别？

---

## [AWS 与 Digital Ocean 对比](https://meta.discourse.org/t/aws-vs-digital-ocean/124422)

<div class="topic-metadata">

**Author:** [@PaigeLynn](https://meta.discourse.org/u/PaigeLynn)\
**回覆:** 8\
**Last updated:** [2019年七月30日 20:27 UTC](https://meta.discourse.org/t/aws-vs-digital-ocean/124422 "2019-07-30T20:27:23Z")

</div>

所以我目前使用 DigitalOcean，并打算在 AWS 上托管邮件，不再使用 Office 365。对于托管 Discourse 来说，哪个更好？我希望将所有服务集中在一个平台上。这样设置会不会更困难……

---

## [WordPress 与 Discourse 自托管安装](https://meta.discourse.org/t/wordpress-discourse-self-hosted-install/124064)

<div class="topic-metadata">

**Author:** [@phil\_c64](https://meta.discourse.org/u/phil_c64)\
**回覆:** 4\
**Last updated:** [2019年七月27日 18:45 UTC](https://meta.discourse.org/t/wordpress-discourse-self-hosted-install/124064 "2019-07-27T18:45:18Z")

</div>

你好， 能否有人为我澄清一下自托管 Discourse 的安装流程？🙂 我希望将 Discourse 与 WordPress 一起使用。因此我一直在阅读 Discourse 安装文章 50752，结果它引导我前往…

---

## [分类子域名 - 备选子域名可能性](https://meta.discourse.org/t/category-subdomains-alternate-subdomain-possibilities/124003)

<div class="topic-metadata">

**Author:** [@davidbongiorno](https://meta.discourse.org/u/davidbongiorno)\
**回覆:** 1\
**Last updated:** [2019年七月25日 22:39 UTC](https://meta.discourse.org/t/category-subdomains-alternate-subdomain-possibilities/124003 "2019-07-25T22:39:39Z")

</div>

您好，我正在为一名客户设置聊天室，该客户已有选定的子域名。我只是想确认我理解了安装指南，所以这个问题可能显得微不足道： 我的客户希望将 Discourse 实例设置为 someth…

---

## [致命错误：不是 git 仓库（或任何父目录直到挂载点 /discourse）](https://meta.discourse.org/t/fatal-not-a-git-repository-or-any-parent-up-to-mount-point-discourse/123803)

<div class="topic-metadata">

**Author:** [@영광\_임](https://meta.discourse.org/u/%EC%98%81%EA%B4%91_%EC%9E%84)\
**回覆:** 12\
**Last updated:** [2019年七月25日 09:35 UTC](https://meta.discourse.org/t/fatal-not-a-git-repository-or-any-parent-up-to-mount-point-discourse/123803 "2019-07-25T09:35:41Z")

</div>

我将修改一些主题和回复来源。 我想在点赞旁边添加一个星级评分功能。 我不知道应该修改哪一部分的源代码。 由于对 Ruby 语言的理解不足，导致……

---

## [30 分钟安装 - 通过 AWS 实现公网 IP 地址/域名访问](https://meta.discourse.org/t/30-min-installation-public-ip-address-domain-access-with-aws/123810)

<div class="topic-metadata">

**Author:** [@davidbongiorno](https://meta.discourse.org/u/davidbongiorno)\
**回覆:** 2\
**Last updated:** [2019年七月24日 17:20 UTC](https://meta.discourse.org/t/30-min-installation-public-ip-address-domain-access-with-aws/123810 "2019-07-24T17:20:15Z")

</div>

您好，我尝试按照推荐的 18.04 Ubuntu 配置，在符合硬件规格的 AWS 服务器上快速安装。我认为自己已接近最后一步，但无法访问 Discourse p…

---

## [外部 Postgres 中不存在“selected”关系](https://meta.discourse.org/t/relation-selected-does-not-exist-with-external-postgres/123761)

<div class="topic-metadata">

**Author:** [@jhuddle1](https://meta.discourse.org/u/jhuddle1)\
**回覆:** 5\
**Last updated:** [2019年七月24日 13:45 UTC](https://meta.discourse.org/t/relation-selected-does-not-exist-with-external-postgres/123761 "2019-07-24T13:45:37Z")

</div>

你好， 我正尝试设置一个托管在一对服务器上的 Discourse 服务器，这两台服务器将作为故障转移对。为此，我需要让它们连接到同一个数据库。我已经在其他地方运行了一个 PostgreSQL 服务器，因此…

---

## [再见 Sparkpost](https://meta.discourse.org/t/goodbye-sparkpost/123026)

<div class="topic-metadata">

**Author:** [@SidV](https://meta.discourse.org/u/SidV)\
**回覆:** 28\
**Last updated:** [2019年七月23日 16:01 UTC](https://meta.discourse.org/t/goodbye-sparkpost/123026 "2019-07-23T16:01:29Z")

</div>

趁早享受吧。现在他们通知说，之前向使用过该服务的用户提供的免费套餐将不再可用。他们建议我转至每月 30 美元的入门套餐，而且……

---

## [如何更改邮件机器人的地址/端口等](https://meta.discourse.org/t/how-to-change-the-email-bots-address-port-etc/123690)

<div class="topic-metadata">

**Author:** [@Karma\_Frenzoid](https://meta.discourse.org/u/Karma_Frenzoid)\
**回覆:** 4\
**Last updated:** [2019年七月23日 10:48 UTC](https://meta.discourse.org/t/how-to-change-the-email-bots-address-port-etc/123690 "2019-07-23T10:48:30Z")

</div>

你好！我是 Discourse 的新手，如果这个问题听起来很小白，请见谅。 我注意到邮箱配置无法从管理面板中编辑： 是否有办法修改邮箱机器人的配置？ 此致！

---

## [从 S3 迁移到 Spaces](https://meta.discourse.org/t/moving-from-s3-to-spaces/93130)

<div class="topic-metadata">

**Author:** [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)\
**回覆:** 9\
**Last updated:** [2019年七月20日 13:15 UTC](https://meta.discourse.org/t/moving-from-s3-to-spaces/93130 "2019-07-20T13:15:51Z")

</div>

我正在尝试制定一个低风险策略，将备份和上传从 AWS S3 迁移到 DO Spaces。最初，我考虑采用“长”流程，即： 将上传文件迁移到本地 移除旧的 S3 配置 添加 n…

---

## [重建时更新 /etc/hosts](https://meta.discourse.org/t/update-etc-hosts-at-rebuild/68703)

<div class="topic-metadata">

**Author:** [@Chopper](https://meta.discourse.org/u/Chopper)\
**回覆:** 9\
**Last updated:** [2019年七月18日 13:15 UTC](https://meta.discourse.org/t/update-etc-hosts-at-rebuild/68703 "2019-07-18T13:15:49Z")

</div>

您好， 我尝试在 app.yml 文件中添加一个命令，以在重建时向 docker 容器的 hosts 文件添加条目。 但这个命令从未成功，我无法理解为什么 :zipper\_mouth\_face: 运行： - exec: …

---

## [如何在创建 Docker 容器时向 cron/anacron 添加任务](https://meta.discourse.org/t/how-to-add-a-job-to-cron-anacron-when-creating-docker-container/123194)

<div class="topic-metadata">

**Author:** [@Owen\_Neuber](https://meta.discourse.org/u/Owen_Neuber)\
**回覆:** 8\
**Last updated:** [2019年七月17日 18:24 UTC](https://meta.discourse.org/t/how-to-add-a-job-to-cron-anacron-when-creating-docker-container/123194 "2019-07-17T18:24:07Z")

</div>

我试图在我的 Docker 容器中添加一个简单的 cron 任务。我希望在设置期间将其添加，以便在 ./launcher rebuild app 完成后自动运行。 当我手动将该 cron 任务添加到…时，它可以正常工作。

---

## [恢复功能已在站点设置中禁用](https://meta.discourse.org/t/recovery-is-disabled-in-the-site-settings/123045)

<div class="topic-metadata">

**Author:** [@samsenwu](https://meta.discourse.org/u/samsenwu)\
**回覆:** 3\
**Last updated:** [2019年七月16日 17:21 UTC](https://meta.discourse.org/t/recovery-is-disabled-in-the-site-settings/123045 "2019-07-16T17:21:07Z")

</div>

大家好，我是一位中国朋友，有一个问题想咨询： 运行 Backstage 后，点击“恢复备份”功能时显示“站点设置中已禁用恢复”。 此外，点击下载时一直卡在 u…

---

## [低价位定价](https://meta.discourse.org/t/lower-tier-pricing/123101)

<div class="topic-metadata">

**Author:** [@BerryBlue](https://meta.discourse.org/u/BerryBlue)\
**回覆:** 3\
**Last updated:** [2019年七月16日 17:18 UTC](https://meta.discourse.org/t/lower-tier-pricing/123101 "2019-07-16T17:18:19Z")

</div>

我想咨询 Discourse 更优惠的定价方案。 我一直在 Digital Ocean 服务器上使用 Discourse，但该服务器已停止运行。我缺乏将其恢复的技术能力，因此更倾向于使用托管解决方案。…

---

## [Ubuntu 开发安装：权限被拒绝 @ apply2files](https://meta.discourse.org/t/ubuntu-development-install-permission-denied-apply2files/122990)

<div class="topic-metadata">

**Author:** [@영광\_임](https://meta.discourse.org/u/%EC%98%81%EA%B4%91_%EC%9E%84)\
**回覆:** 1\
**Last updated:** [2019年七月15日 17:16 UTC](https://meta.discourse.org/t/ubuntu-development-install-permission-denied-apply2files/122990 "2019-07-15T17:16:57Z")

</div>

https://meta.discourse.org/t/beginners-guide-to-install-discourse-on-ubuntu-for-development/14727 我安装 Discourse 失败了…… bundle exec rake db:create db:migrate （在 /srv/discourse 中） rake aborted! Errno::EACCES：权限被拒…

---

## [Plesk 安装问题](https://meta.discourse.org/t/plesk-installation-issue/122839)

<div class="topic-metadata">

**Author:** [@TheNeoTV](https://meta.discourse.org/u/TheNeoTV)\
**回覆:** 1\
**Last updated:** [2019年七月13日 00:23 UTC](https://meta.discourse.org/t/plesk-installation-issue/122839 "2019-07-13T00:23:05Z")

</div>

是否可以在不更改端口的情况下在 Plesk 服务器上安装 Discourse？如果可以，请提供一份指南：wink:

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

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