# Self-hosting

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

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

**Page:** 130

---

## [安装时出错](https://meta.discourse.org/t/error-when-attempting-install/94850)

<div class="topic-metadata">

**Author:** [@Tango](https://meta.discourse.org/u/Tango)\
**回覆:** 7\
**Last updated:** [2018年八月17日 06:50 UTC](https://meta.discourse.org/t/error-when-attempting-install/94850 "2018-08-17T06:50:25Z")

</div>

您好， 已安装 Docker 和 Git 克隆了镜像 复制了模板文件 app.yml、redis.yml 和 data.yml 随后修改了 app.yml 文件，加入了我的 PostgreSQL 和 Redis 配置信息，包括主机、通知设置等。 当我运行 …

---

## [免费安装 Discourse 是不可能的吗？](https://meta.discourse.org/t/is-installing-discourse-for-free-impossible/94964)

<div class="topic-metadata">

**Author:** [@PortalPlayer](https://meta.discourse.org/u/PortalPlayer)\
**回覆:** 15\
**Last updated:** [2018年八月17日 06:06 UTC](https://meta.discourse.org/t/is-installing-discourse-for-free-impossible/94964 "2018-08-17T06:06:18Z")

</div>

我想使用 Discourse，但如果唯一的方式是支付 100 美元，那我宁愿继续使用 myBB 或 phpBB 之类的软件。

---

## [使用 Discourse 官方插件重建时出现安装错误（Discourse v2.0.3）](https://meta.discourse.org/t/installation-error-when-rebuilding-with-discourse-official-plugins-discourse-v2-0-3/94739)

<div class="topic-metadata">

**Author:** [@john3](https://meta.discourse.org/u/john3)\
**回覆:** 7\
**Last updated:** [2018年八月16日 00:36 UTC](https://meta.discourse.org/t/installation-error-when-rebuilding-with-discourse-official-plugins-discourse-v2-0-3/94739 "2018-08-16T00:36:12Z")

</div>

您好， 目前我在安装 Discourse 时遇到了问题，问题出在插件上。如果我只使用 \`docker\_manager.git\` 安装 Discourse，一切正常。但如果安装了如 Discourse Solved 等插件，就会出现空白页……

---

## [在 DigitalOcean 上设置 WordPress 与 Discourse 的完整指南](https://meta.discourse.org/t/comprehensive-guide-to-setting-up-wordpress-with-discourse-on-digitalocean/94624)

<div class="topic-metadata">

**Author:** [@jord8on](https://meta.discourse.org/u/jord8on)\
**回覆:** 4\
**Last updated:** [2018年八月13日 21:52 UTC](https://meta.discourse.org/t/comprehensive-guide-to-setting-up-wordpress-with-discourse-on-digitalocean/94624 "2018-08-13T21:52:34Z")

</div>

我已经阅读了来自 DigitalOcean (DO) 的许多讨论和文章，以及 Meta 社区的一些内容，了解如何在单个或多个 droplet（通过 DO）上安装 Discourse 或 WordPress (WP)。 我的问题是…… W…

---

## [此更新有多重要？](https://meta.discourse.org/t/how-critical-is-this-update/94517)

<div class="topic-metadata">

**Author:** [@Openmind](https://meta.discourse.org/u/Openmind)\
**回覆:** 3\
**Last updated:** [2018年八月12日 09:34 UTC](https://meta.discourse.org/t/how-critical-is-this-update/94517 "2018-08-12T09:34:42Z")

</div>

你好，能请你帮我看一下我的版本吗？这个更新有多紧急？换句话说，我需要立即更新我的版本，还是可以稍后再更新？

---

## [Discourse Link previews through a proxy server?](https://meta.discourse.org/t/discourse-link-previews-through-a-proxy-server/72720)

<div class="topic-metadata">

**Author:** [@nsuchy](https://meta.discourse.org/u/nsuchy)\
**回覆:** 23\
**Last updated:** [2018年八月12日 05:19 UTC](https://meta.discourse.org/t/discourse-link-previews-through-a-proxy-server/72720 "2018-08-12T05:19:45Z")

</div>

I keep my forum’s server behind cloud flare due to a large amount of attacks against the site. The link previews and emails can leak the server’s backend IP Address. The email issue was resolved by setting up a SMTP rela…

---

## [DNS Queries with Discourse - Huge Volume](https://meta.discourse.org/t/dns-queries-with-discourse-huge-volume/20849)

<div class="topic-metadata">

**Author:** [@BCHK](https://meta.discourse.org/u/BCHK)\
**回覆:** 6\
**Last updated:** [2014年十月7日 16:59 UTC](https://meta.discourse.org/t/dns-queries-with-discourse-huge-volume/20849 "2014-10-07T16:59:16Z")

</div>

In the last 3 or 4 months my DNS queries seem to have gone through the roof - and now I’m getting charged $70/month from DynDNS (3.5 million queries a month, they tell me). My traffic as measured by Quantcast.com and Go…

---

## [新安装的 Discourse 能否不要求 SMTP 服务器证书验证？](https://meta.discourse.org/t/can-new-discourse-install-not-require-smtp-server-certificate-validation/94445)

<div class="topic-metadata">

**Author:** [@stephenz](https://meta.discourse.org/u/stephenz)\
**回覆:** 2\
**Last updated:** [2018年八月10日 22:08 UTC](https://meta.discourse.org/t/can-new-discourse-install-not-require-smtp-server-certificate-validation/94445 "2018-08-10T22:08:16Z")

</div>

我刚安装了 Discourse，正在寻找某个特定设置，以解决我遇到的问题。 我有一个本地 SMTP 中继，即带有垃圾邮件和病毒防护功能的 UTM。它接受端口 25 上的中继，……

---

## [Production.log 不存在](https://meta.discourse.org/t/production-log-does-not-exist/93887)

<div class="topic-metadata">

**Author:** [@Rahul\_Jobanputra](https://meta.discourse.org/u/Rahul_Jobanputra)\
**回覆:** 7\
**Last updated:** [2018年八月10日 22:00 UTC](https://meta.discourse.org/t/production-log-does-not-exist/93887 "2018-08-10T22:00:56Z")

</div>

当我尝试使用以下命令访问我的 production.log 文件时： cd /var/discourse tail shared/standalone/log/rails/production.log tail: 无法打开 'shared/standalone/log/rails/production.log' 进行读取：…

---

## [启用 Let's Encrypt 的 SSL 后论坛无法加载](https://meta.discourse.org/t/forum-doesnt-load-after-enabling-ssl-with-lets-encrypt/93809)

<div class="topic-metadata">

**Author:** [@pidge](https://meta.discourse.org/u/pidge)\
**回覆:** 9\
**Last updated:** [2018年八月8日 07:41 UTC](https://meta.discourse.org/t/forum-doesnt-load-after-enabling-ssl-with-lets-encrypt/93809 "2018-08-08T07:41:42Z")

</div>

嘿， 我刚开始用 Discourse 搭建一个社区，按照这个教程启用了 SSL。但启用后，我的论坛就无法加载了。浏览器只显示“（网站地址）拒绝连接”。 我检查了……

---

## [升级至 v2.1.0.beta3 后管理仪表板无法加载 +20](https://meta.discourse.org/t/admin-dashboard-wont-load-after-upgrade-to-v2-1-0-beta3-20/93311)

<div class="topic-metadata">

**Author:** [@clay](https://meta.discourse.org/u/clay)\
**回覆:** 31\
**Last updated:** [2018年八月7日 02:12 UTC](https://meta.discourse.org/t/admin-dashboard-wont-load-after-upgrade-to-v2-1-0-beta3-20/93311 "2018-08-07T02:12:27Z")

</div>

我已将 Discourse 重建至 v2.1.0.beta3 +20，这是遵循今天早上收到的关于存在关键更新的通知。重建过程中未出现任何错误。但是，管理仪表盘在尝试加载后现在返回 502 错误……

---

## [您对修改后的 grub 配置文件想做什么？](https://meta.discourse.org/t/what-do-you-want-to-do-about-modified-configuration-file-grub/93999)

<div class="topic-metadata">

**Author:** [@akhil](https://meta.discourse.org/u/akhil)\
**回覆:** 3\
**Last updated:** [2018年八月6日 07:20 UTC](https://meta.discourse.org/t/what-do-you-want-to-do-about-modified-configuration-file-grub/93999 "2018-08-06T07:20:53Z")

</div>

你好！ 在进行 Discourse 安装之前，我发现有可用的更新。 因此，我决定按照您的建议进行更新：手动将 Discourse 和 Docker 镜像更新到最新版本。 我执行了这些命令……

---

## [配置使用 Discourse 和 WordPress 的网站？！](https://meta.discourse.org/t/configuring-website-with-discourse-and-wordpress/93832)

<div class="topic-metadata">

**Author:** [@paulsky](https://meta.discourse.org/u/paulsky)\
**回覆:** 1\
**Last updated:** [2018年八月3日 08:31 UTC](https://meta.discourse.org/t/configuring-website-with-discourse-and-wordpress/93832 "2018-08-03T08:31:07Z")

</div>

好的，我有点困惑……我正在尝试搭建一个结合 Discourse 和 WordPress 的网站。不过 Discourse 有一些特殊的服务器需求，所以它们必须部署在不同的服务器上吗？我是否需要创建一个指向……的子域名？

---

## [Outlook/Hotmail 邮箱垃圾邮件文件夹问题](https://meta.discourse.org/t/email-spam-folder-problems-with-outlook-hotmail/93425)

<div class="topic-metadata">

**Author:** [@visions710](https://meta.discourse.org/u/visions710)\
**回覆:** 13\
**Last updated:** [2018年七月31日 04:05 UTC](https://meta.discourse.org/t/email-spam-folder-problems-with-outlook-hotmail/93425 "2018-07-31T04:05:33Z")

</div>

我在设置电子邮件方面遇到了极大的麻烦。这是我第一次设置 Discord 服务器。我的托管服务是 Digital Ocean，我正尝试使用 Mailgun 作为我的电子邮件提供商。几乎一切都……

---

## [哪位好心人能向新手解释一下从 VB 迁移到 DC 的过程？](https://meta.discourse.org/t/will-some-kind-person-explain-vb-to-dc-migration-for-a-noob/93489)

<div class="topic-metadata">

**Author:** [@Kate\_scout](https://meta.discourse.org/u/Kate_scout)\
**回覆:** 1\
**Last updated:** [2018年七月30日 16:54 UTC](https://meta.discourse.org/t/will-some-kind-person-explain-vb-to-dc-migration-for-a-noob/93489 "2018-07-30T16:54:15Z")

</div>

如果有人有耐心，请用五岁小孩能懂的方式解释一下，把论坛从 vb 4 迁移到 Discourse 需要做些什么？

---

## [安装求助](https://meta.discourse.org/t/installation-help-required/93371)

<div class="topic-metadata">

**Author:** [@umardraz](https://meta.discourse.org/u/umardraz)\
**回覆:** 8\
**Last updated:** [2018年七月30日 11:13 UTC](https://meta.discourse.org/t/installation-help-required/93371 "2018-07-30T11:13:28Z")

</div>

你好 我想安装 Discourse，但在安装之前想先问几个问题。 我已经在专用虚拟机上部署了 PostgreSQL 数据库，并且可以在我的 Docker 容器中访问该 PostgreSQL 数据库。此外，我还有一个 ngi…

---

## [多容器设置中启动器更新如何工作？](https://meta.discourse.org/t/how-does-launcher-update-work-in-multicontainer-setup/93388)

<div class="topic-metadata">

**Author:** [@TheBestPessimist](https://meta.discourse.org/u/TheBestPessimist)\
**回覆:** 5\
**Last updated:** [2018年七月30日 05:22 UTC](https://meta.discourse.org/t/how-does-launcher-update-work-in-multicontainer-setup/93388 "2018-07-30T05:22:53Z")

</div>

你好，前面有一大段文字，请多包涵，我只是出于好奇。 我是双容器用户：data 和 web\_only。 为了更新，我 SSH 登录到我的服务器，然后我设想我会输入： sh /var/discourse/launcher …

---

## [网站更新后无法启动](https://meta.discourse.org/t/site-wont-start-after-update/93380)

<div class="topic-metadata">

**Author:** [@vicatcu](https://meta.discourse.org/u/vicatcu)\
**回覆:** 6\
**Last updated:** [2018年七月29日 23:59 UTC](https://meta.discourse.org/t/site-wont-start-after-update/93380 "2018-07-29T23:59:06Z")

</div>

这是重建的输出： 确保启动器为最新版本 正在获取 origin 启动器已是最新版本 正在停止旧容器 + /usr/bin/docker stop -t 10 app app cd /pups && git pull && /pups/bin/pups --stdin 已经…

---

## [Postgres 更新失败？](https://meta.discourse.org/t/postgres-failing-to-update/93412)

<div class="topic-metadata">

**Author:** [@vicatcu](https://meta.discourse.org/u/vicatcu)\
**回覆:** 14\
**Last updated:** [2018年七月29日 22:01 UTC](https://meta.discourse.org/t/postgres-failing-to-update/93412 "2018-07-29T22:01:23Z")

</div>

在运行 ./launcher rebuild app 时出现以下信息： I, \[2018-07-29T14:29:05.072061 #14\] INFO -- : \> /root/upgrade\_postgres 警告：已为本地连接启用“信任”身份验证 您可以通过编辑 pg\_h… 来更改此设置。

---

## [为什么 Discourse 只能通过 SSH 安装？](https://meta.discourse.org/t/why-discourse-can-be-only-installed-from-ssh/93350)

<div class="topic-metadata">

**Author:** [@peopleinside](https://meta.discourse.org/u/peopleinside)\
**回覆:** 11\
**Last updated:** [2018年七月28日 22:56 UTC](https://meta.discourse.org/t/why-discourse-can-be-only-installed-from-ssh/93350 "2018-07-28T22:56:34Z")

</div>

你好，我很好奇，为什么这款优秀的论坛软件只能通过 SSH 安装，而不能通过上传文件夹和安装文件来完成？ 感谢帮助！:slight\_smile:

---

## [Discourse 能否在 cPanel 之外的服务器上运行？](https://meta.discourse.org/t/can-discourse-work-on-a-server-beside-cpanel/93323)

<div class="topic-metadata">

**Author:** [@texxxo](https://meta.discourse.org/u/texxxo)\
**回覆:** 1\
**Last updated:** [2018年七月27日 23:51 UTC](https://meta.discourse.org/t/can-discourse-work-on-a-server-beside-cpanel/93323 "2018-07-27T23:51:55Z")

</div>

大家好，我是 Discourse 的新手。 我已经在自己的服务器上运行了 cPanel 和一些网站（Apache、CentOS）。 我能否在同一台服务器上安装 Discourse 而不出现问题？ 谢谢。

---

## [无法重建应用：'bundle exec rake db:migrate' 失败](https://meta.discourse.org/t/cant-rebuild-app-bundle-exec-rake-db-migrate-failed/93181)

<div class="topic-metadata">

**Author:** [@60d9eb1b376343f4e7b4](https://meta.discourse.org/u/60d9eb1b376343f4e7b4)\
**回覆:** 10\
**Last updated:** [2018年七月27日 10:52 UTC](https://meta.discourse.org/t/cant-rebuild-app-bundle-exec-rake-db-migrate-failed/93181 "2018-07-27T10:52:11Z")

</div>

你好。 运行命令： ./launcher rebuild app 输出错误： I, \[2018-07-26T07:19:47.246135 #15\] INFO -- : \> cd /var/www/discourse && su discourse -c 'bundle exec rake db:migrate' rake aborted! …

---

## [Azure App Service install via Docker Container setting](https://meta.discourse.org/t/azure-app-service-install-via-docker-container-setting/61142)

<div class="topic-metadata">

**Author:** [@tjh7](https://meta.discourse.org/u/tjh7)\
**回覆:** 2\
**Last updated:** [2017年四月17日 23:31 UTC](https://meta.discourse.org/t/azure-app-service-install-via-docker-container-setting/61142 "2017-04-17T23:31:35Z")

</div>

Hi, is it possible to install Discourse onto an Azure App Service via the Docker Container setting? Thanks

---

## [Digital Ocean、G Suite、SendGrid、Namecheap](https://meta.discourse.org/t/digital-ocean-g-suite-sendgrid-namecheap/90969)

<div class="topic-metadata">

**Author:** [@jayqueue2](https://meta.discourse.org/u/jayqueue2)\
**回覆:** 15\
**Last updated:** [2018年七月26日 18:07 UTC](https://meta.discourse.org/t/digital-ocean-g-suite-sendgrid-namecheap/90969 "2018-07-26T18:07:35Z")

</div>

我在让我的新 Discourse 服务器收发邮件方面遇到了不少麻烦。我使用 DigitalOcean 进行托管，这方面似乎没有问题。服务器正在运行，我可以成功登录。我正在使用 G Sui…

---

## [自托管所需的时间与技能](https://meta.discourse.org/t/self-hosting-time-and-skills/91909)

<div class="topic-metadata">

**Author:** [@communitygal](https://meta.discourse.org/u/communitygal)\
**回覆:** 10\
**Last updated:** [2018年七月26日 16:13 UTC](https://meta.discourse.org/t/self-hosting-time-and-skills/91909 "2018-07-26T16:13:53Z")

</div>

大家好， 我目前使用的是 Discourse 托管计划，正在评估如果我们未来决定自行托管社区，需要投入多少工作量和时间。 如果您自行托管，能否告知您大约花费了多少时间？

---

## [Discourse 升级失败，需要 Ruby 2.4 或更高版本](https://meta.discourse.org/t/discourse-upgrade-failed-with-ruby-2-4-or-above-required/92782)

<div class="topic-metadata">

**Author:** [@justme](https://meta.discourse.org/u/justme)\
**回覆:** 4\
**Last updated:** [2018年七月20日 17:44 UTC](https://meta.discourse.org/t/discourse-upgrade-failed-with-ruby-2-4-or-above-required/92782 "2018-07-20T17:44:29Z")

</div>

我刚刚尝试升级我们的 Discourse 论坛，在安装进行到一小部分时出现了以下错误： 我将 Docker 容器中的 Ruby 版本更新为 Ruby 2.4.4，并使用 RVM 将其设置为默认版本，T…

---

## [Transfer Docker installed Discourse to new DigitalOcean droplet](https://meta.discourse.org/t/transfer-docker-installed-discourse-to-new-digitalocean-droplet/25704)

<div class="topic-metadata">

**Author:** [@sckott](https://meta.discourse.org/u/sckott)\
**回覆:** 8\
**Last updated:** [2018年七月18日 15:57 UTC](https://meta.discourse.org/t/transfer-docker-installed-discourse-to-new-digitalocean-droplet/25704 "2018-07-18T15:57:52Z")

</div>

I have a Discourse installation installed on DO via docker. What’s best practice for moving the installation to a new droplet? I’d assume just create an image from the droplet, kill the droplet, spin up new droplet from…

---

## [从安装选项移除 Let's Encrypt](https://meta.discourse.org/t/removing-lets-encrypt-from-installation-choice/92366)

<div class="topic-metadata">

**Author:** [@KWCT](https://meta.discourse.org/u/KWCT)\
**回覆:** 4\
**Last updated:** [2018年七月16日 10:46 UTC](https://meta.discourse.org/t/removing-lets-encrypt-from-installation-choice/92366 "2018-07-16T10:46:31Z")

</div>

你好， 在新安装运行 ./discourse-setup 时，由于复制/粘贴出错，最后一个选项显示为： Let's Encrypt : SMTP 用户名 即使重新运行设置程序，我也无法移除它。我想我只能……

---

## [启用 HTTPS 后出现过多重定向](https://meta.discourse.org/t/too-many-redirects-after-enabling-https/92338)

<div class="topic-metadata">

**Author:** [@KevinWorkman](https://meta.discourse.org/u/KevinWorkman)\
**回覆:** 7\
**Last updated:** [2018年七月15日 08:04 UTC](https://meta.discourse.org/t/too-many-redirects-after-enabling-https/92338 "2018-07-15T08:04:04Z")

</div>

我试图按照本指南在现有论坛上启用 HTTPS：设置 Let’s Encrypt。 我运行了 ./discourse-setup，并输入了我的邮箱地址用于 Let’s Encrypt，然后重新构建了应用。 然而，现在当我访问我的 …

---

## [Install with Docker compose](https://meta.discourse.org/t/install-with-docker-compose/27386)

<div class="topic-metadata">

**Author:** [@Pierre\_Thierry](https://meta.discourse.org/u/Pierre_Thierry)\
**回覆:** 7\
**Last updated:** [2018年七月11日 18:51 UTC](https://meta.discourse.org/t/install-with-docker-compose/27386 "2018-07-11T18:51:20Z")

</div>

The current installation method uses a Discourse-specific script to which you have to give total control of your Docker host to do the installation, upgrades and so on. Would it be possible to provide a docker-compose.y…

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

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