# Self-hosting

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

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

**Page:** 135

---

## [求助，请勿发送邮件](https://meta.discourse.org/t/help-do-not-send-the-email/82515)

<div class="topic-metadata">

**Author:** [@Mecanicos\_Argentinos](https://meta.discourse.org/u/Mecanicos_Argentinos)\
**回覆:** 12\
**Last updated:** [2018年三月8日 15:44 UTC](https://meta.discourse.org/t/help-do-not-send-the-email/82515 "2018-03-08T15:44:37Z")

</div>

大家好，祝各位今日愉快。 首先我想说明一下，我不会说或写英语，只会说和写西班牙语。因此我使用了谷歌翻译，敬请谅解。 我的经验主要集中在共享主机方面，使用……

---

## [lets encrypt 更新后启动时缺少文件 (discourse.conf)？](https://meta.discourse.org/t/missing-file-discourse-conf-when-launching-after-lets-encrypt-update/82235)

<div class="topic-metadata">

**Author:** [@David\_fs](https://meta.discourse.org/u/David_fs)\
**回覆:** 3\
**Last updated:** [2018年三月7日 10:15 UTC](https://meta.discourse.org/t/missing-file-discourse-conf-when-launching-after-lets-encrypt-update/82235 "2018-03-07T10:15:16Z")

</div>

我所做的只是添加了额外的两个模板，并尝试重新启动应用程序，现在却遇到了这个问题。其他模板似乎都设置指向完全相同的位置。所以我想它被以某种方式移除了。 这……

---

## [在nginx中添加子域名例外，以在同一主机上托管另一个网站](https://meta.discourse.org/t/add-subdomain-exception-to-nginx-to-host-another-site-on-same-host/82357)

<div class="topic-metadata">

**Author:** [@trudat](https://meta.discourse.org/u/trudat)\
**回覆:** 2\
**Last updated:** [2018年三月6日 21:42 UTC](https://meta.discourse.org/t/add-subdomain-exception-to-nginx-to-host-another-site-on-same-host/82357 "2018-03-06T21:42:33Z")

</div>

我在与discourse同一主机上设置另一个Web服务。我想在nginx配置中添加一个例外，让discourse忽略对那个子域的请求，然后由另一个程序处理路由。

---

## [Discourse + Nginx 反向代理](https://meta.discourse.org/t/discourse-nginx-reverse-proxy/82232)

<div class="topic-metadata">

**Author:** [@Seferi](https://meta.discourse.org/u/Seferi)\
**回覆:** 3\
**Last updated:** [2018年三月6日 09:16 UTC](https://meta.discourse.org/t/discourse-nginx-reverse-proxy/82232 "2018-03-06T09:16:26Z")

</div>

你好， 我有一台配置为 Nginx 反向代理的树莓派，同时处理 SSL（Let's Encrypt），并在服务器上运行了 Nextcloud 实例，一切正常。我在同一台服务器上安装了 Discourse，并且……

---

## [无法进入应用容器，仍然在运行](https://meta.discourse.org/t/cant-enter-app-container-still-working-though/82236)

<div class="topic-metadata">

**Author:** [@jerdog](https://meta.discourse.org/u/jerdog)\
**回覆:** 5\
**Last updated:** [2018年三月5日 20:59 UTC](https://meta.discourse.org/t/cant-enter-app-container-still-working-though/82236 "2018-03-05T20:59:46Z")

</div>

所以我试图在我们的生产环境服务器上运行 ./launcher enter app 以检查 nginx 配置设置，但收到如下错误： $ ./launcher enter app /usr/bin/docker: 来自 daemon 的错误响应：连接错误：des…

---

## [在 Ubuntu 上全新安装后，磁盘空间不足](https://meta.discourse.org/t/fresh-install-on-ubuntu-missing-space-on-disk/79320)

<div class="topic-metadata">

**Author:** [@fredkgb](https://meta.discourse.org/u/fredkgb)\
**回覆:** 7\
**Last updated:** [2018年三月3日 03:14 UTC](https://meta.discourse.org/t/fresh-install-on-ubuntu-missing-space-on-disk/79320 "2018-03-03T03:14:56Z")

</div>

我的 VPS 有 10GB 空间。这是一次全新的 Ubuntu 16.04 安装。我按照本教程操作：discourse/docs/INSTALL-cloud.md at main · discourse/discourse · GitHub。在执行 ./discourse-setup 命令后，我收到了以下消息。 您 ……

---

## [如何编辑discourse文件？开发箱？](https://meta.discourse.org/t/how-to-edit-the-discourse-files-a-development-box/81388)

<div class="topic-metadata">

**Author:** [@frold](https://meta.discourse.org/u/frold)\
**回覆:** 11\
**Last updated:** [2018年三月1日 13:01 UTC](https://meta.discourse.org/t/how-to-edit-the-discourse-files-a-development-box/81388 "2018-03-01T13:01:12Z")

</div>

我想在discourse中使用这些文件——我不是编码人员，但我有一些微调，想看看是否能够添加。学习的最好方式就是当你有一些目标时会更容易：) 我有一个…

---

## [ERR\_SSL\_PROTOCOL\_ERROR 与 Letsencrypt](https://meta.discourse.org/t/err-ssl-protocol-error-with-letsencrypt/81541)

<div class="topic-metadata">

**Author:** [@mdfrg](https://meta.discourse.org/u/mdfrg)\
**回覆:** 3\
**Last updated:** [2018年二月26日 15:35 UTC](https://meta.discourse.org/t/err-ssl-protocol-error-with-letsencrypt/81541 "2018-02-26T15:35:49Z")

</div>

你好， 我在设置 Discourse 论坛的 Let's Encrypt SSL 证书时遇到了问题。为了举例说明，我将我的页面称为 mypage.com。 目标： 我想设置一个 VPS，在其中运行 WordPress 博客……

---

## [设置离线页面](https://meta.discourse.org/t/setting-up-offline-page/81462)

<div class="topic-metadata">

**Author:** [@dje4321](https://meta.discourse.org/u/dje4321)\
**回覆:** 15\
**Last updated:** [2018年二月26日 08:48 UTC](https://meta.discourse.org/t/setting-up-offline-page/81462 "2018-02-26T08:48:20Z")

</div>

所以我正在按照这个指南设置当论坛因某些原因宕机时的离线页面，但我遇到了两个问题。我遇到的两个问题是nginx没有将502错误重定向到离线页面…

---

## [SMTP connection problem, docker installation](https://meta.discourse.org/t/smtp-connection-problem-docker-installation/41981)

<div class="topic-metadata">

**Author:** [@Sanzhar\_Aubakirov](https://meta.discourse.org/u/Sanzhar_Aubakirov)\
**回覆:** 4\
**Last updated:** [2018年二月24日 01:59 UTC](https://meta.discourse.org/t/smtp-connection-problem-docker-installation/41981 "2018-02-24T01:59:00Z")

</div>

I installed discourse, run it and trying to Sign in as administrator. But I did not receive activation email. I see this message in log file Sent mail to my\_email (10182.6ms) Job exception: 504 5.7.4 Unrecognized authe…

---

## [移除 https 后我的论坛离线了](https://meta.discourse.org/t/my-forum-goes-offline-after-removing-https/81115)

<div class="topic-metadata">

**Author:** [@burningman](https://meta.discourse.org/u/burningman)\
**回覆:** 44\
**Last updated:** [2018年二月22日 11:06 UTC](https://meta.discourse.org/t/my-forum-goes-offline-after-removing-https/81115 "2018-02-22T11:06:29Z")

</div>

其中一个论坛离线了。我检查了服务器，但服务器端一切正常。 另一个论坛运行正常，但有一个论坛离线了。 有人在这里遇到这个问题吗？ 如果这里有谁能……那就太好了。

---

## [Discourse 能否以私有模式安装](https://meta.discourse.org/t/can-discourse-be-installed-in-private-mode/80770)

<div class="topic-metadata">

**Author:** [@Andrei\_Berceanu](https://meta.discourse.org/u/Andrei_Berceanu)\
**回覆:** 11\
**Last updated:** [2018年二月20日 19:56 UTC](https://meta.discourse.org/t/can-discourse-be-installed-in-private-mode/80770 "2018-02-20T19:56:20Z")

</div>

我想在 DigitalOcean Droplet 上安装 Discourse，并仅允许注册用户查看内容，这可行吗？

---

## [502 服务不可用的短暂中断，调试指南](https://meta.discourse.org/t/bursts-of-502-service-unavailable-pointers-to-debug/80571)

<div class="topic-metadata">

**Author:** [@smth](https://meta.discourse.org/u/smth)\
**回覆:** 15\
**Last updated:** [2018年二月18日 16:37 UTC](https://meta.discourse.org/t/bursts-of-502-service-unavailable-pointers-to-debug/80571 "2018-02-18T16:37:33Z")

</div>

你好， 我运营着托管在DigitalOcean上的discuss.pytorch.org网站。几天前，网站变得非常慢，页面显示“nginx 502 Service Unavailable”。磁盘空间充足，没有发生什么变化……

---

## [MailGun.org IP 被列入黑名单](https://meta.discourse.org/t/mailgun-org-ip-on-blacklist/80725)

<div class="topic-metadata">

**Author:** [@Donald\_Swofford](https://meta.discourse.org/u/Donald_Swofford)\
**回覆:** 2\
**Last updated:** [2018年二月18日 05:15 UTC](https://meta.discourse.org/t/mailgun-org-ip-on-blacklist/80725 "2018-02-18T05:15:26Z")

</div>

按照我下面发送给自己的测试邮件中的说明，我向 mail-tester.com 发送了一封测试邮件，结果显示 mailgun.org 的得分为 9/10，并提示我的邮件 IP 位于 IP 黑名单中：“被列入 \[Hostkarma\]（-1）”……

---

## [如何在 nginx 中实现 htaccess 中的操作？](https://meta.discourse.org/t/how-do-i-do-what-i-did-in-htaccess-in-nginx/80772)

<div class="topic-metadata">

**Author:** [@MostHated](https://meta.discourse.org/u/MostHated)\
**回覆:** 9\
**Last updated:** [2018年二月16日 21:04 UTC](https://meta.discourse.org/t/how-do-i-do-what-i-did-in-htaccess-in-nginx/80772 "2018-02-16T21:04:58Z")

</div>

嘿，你好， 我刚切换到 Discourse。之前我用 Apache 和 .htaccess 测试过 Flarum，当时写了一条规则：每当出现子域名（www. 除外）时，就会提取该子域名并追加…

---

## [在隔离环境中安装 Discourse？](https://meta.discourse.org/t/install-discourse-in-isolated-environment/80731)

<div class="topic-metadata">

**Author:** [@hddimon](https://meta.discourse.org/u/hddimon)\
**回覆:** 1\
**Last updated:** [2018年二月16日 11:41 UTC](https://meta.discourse.org/t/install-discourse-in-isolated-environment/80731 "2018-02-16T11:41:09Z")

</div>

嘿，Discourse 团队！感谢你们提供了这么棒的产品。 在联网服务器上安装 Discourse 非常简单，但在没有互联网连接的隔离网络中该如何安装呢？ 谢谢！ Dmitry。

---

## [为社区添加表单处理器](https://meta.discourse.org/t/add-a-form-handler-to-community/80581)

<div class="topic-metadata">

**Author:** [@communitygal](https://meta.discourse.org/u/communitygal)\
**回覆:** 4\
**Last updated:** [2018年二月15日 21:20 UTC](https://meta.discourse.org/t/add-a-form-handler-to-community/80581 "2018-02-15T21:20:12Z")

</div>

是否可以将 Pardot 表单处理器添加到 Discourse 实例中？

---

## [用于预发布环境的 Discourse 托管](https://meta.discourse.org/t/discourse-hosting-for-staging-environments/80407)

<div class="topic-metadata">

**Author:** [@rikikonikoff](https://meta.discourse.org/u/rikikonikoff)\
**回覆:** 8\
**Last updated:** [2018年二月13日 16:02 UTC](https://meta.discourse.org/t/discourse-hosting-for-staging-environments/80407 "2018-02-13T16:02:50Z")

</div>

我正在开发一个 Rails 应用，目前运行着带有自定义插件的 Discourse。该插件由外部承包商创建并配置。现在，我的团队希望为每个预发布环境模拟生产环境的设置……

---

## [首次在网站部署 Discourse 的新手指南](https://meta.discourse.org/t/first-timer-setting-up-discourse-on-website/80345)

<div class="topic-metadata">

**Author:** [@katiesmith](https://meta.discourse.org/u/katiesmith)\
**回覆:** 1\
**Last updated:** [2018年二月12日 07:52 UTC](https://meta.discourse.org/t/first-timer-setting-up-discourse-on-website/80345 "2018-02-12T07:52:12Z")

</div>

你好！我希望能在我的网站上安装 Discourse 的过程中得到指导。 我技术基础不太扎实，但想学习这个过程。我读到第一步是在我的 DNS 中创建一个 CNAME 记录……对吗？

---

## [如何更改域名而不损失排名？](https://meta.discourse.org/t/how-to-change-domain-without-losing-ranking/80256)

<div class="topic-metadata">

**Author:** [@trangchongcheng](https://meta.discourse.org/u/trangchongcheng)\
**回覆:** 6\
**Last updated:** [2018年二月12日 05:51 UTC](https://meta.discourse.org/t/how-to-change-domain-without-losing-ranking/80256 "2018-02-12T05:51:54Z")

</div>

我正在使用 A.COM 域名，现在想更改为 B.COM，希望在更改后不损失排名。 我参考了：https://meta.discourse.org/t/change-the-domain-name-or-rename-my-discourse/ 但是，当点击 A... 的帖子时……

---

## [稍后过渡到 Discourse](https://meta.discourse.org/t/transitioning-to-discourse-later/80263)

<div class="topic-metadata">

**Author:** [@nibl](https://meta.discourse.org/u/nibl)\
**回覆:** 12\
**Last updated:** [2018年二月11日 02:04 UTC](https://meta.discourse.org/t/transitioning-to-discourse-later/80263 "2018-02-11T02:04:19Z")

</div>

Discourse 无法安装在 SiteGround 的共享主机账户上，而我的网站就托管在那里。我刚刚与他们的支持团队进行了沟通。 对于刚刚起步的小型论坛来说，在其他地方再购买一个托管计划并不值得……

---

## [关于集成到 Docker-Compose 设置的建议？](https://meta.discourse.org/t/advice-on-integrating-into-a-docker-compose-setup/80278)

<div class="topic-metadata">

**Author:** [@KyleTryon](https://meta.discourse.org/u/KyleTryon)\
**回覆:** 1\
**Last updated:** [2018年二月10日 20:31 UTC](https://meta.discourse.org/t/advice-on-integrating-into-a-docker-compose-setup/80278 "2018-02-10T20:31:11Z")

</div>

我想创建一个 WordPress 和 Discourse 网站。我目前正在构建一个 docker-compose 文件，并准备进行测试。当前配置包含一个 NginX + Let's Encrypt 容器、一个 MySQL 容器，以及一个 WordPress 容…

---

## [备份到 s3 时遇到问题](https://meta.discourse.org/t/issues-backing-up-to-s3/79307)

<div class="topic-metadata">

**Author:** [@jerdog](https://meta.discourse.org/u/jerdog)\
**回覆:** 4\
**Last updated:** [2018年二月9日 22:53 UTC](https://meta.discourse.org/t/issues-backing-up-to-s3/79307 "2018-02-09T22:53:41Z")

</div>

因此，在备份到 S3 时遇到一些问题——我已输入我的 S3 凭证（这是一个私有存储桶），但每次备份时都会出现以下错误： \[2018-01-29 21:41:45\] 正在执行备份的 after\_create\_hook…

---

## [预售 vBulletin 迁移问题](https://meta.discourse.org/t/pre-sales-vbulletin-migration-question/80177)

<div class="topic-metadata">

**Author:** [@canadian](https://meta.discourse.org/u/canadian)\
**回覆:** 3\
**Last updated:** [2018年二月9日 16:12 UTC](https://meta.discourse.org/t/pre-sales-vbulletin-migration-question/80177 "2018-02-09T16:12:07Z")

</div>

你好， 我正在考虑向一个拥有活跃 vBulletin 社区的客户提供 Discourse 作为替代方案。我注意到已有从 vb5 导入数据的脚本可用，但似乎没有找到导入私信的方法……

---

## [升级后出现电子邮件问题](https://meta.discourse.org/t/email-problem-after-upgrade/80010)

<div class="topic-metadata">

**Author:** [@rayk](https://meta.discourse.org/u/rayk)\
**回覆:** 5\
**Last updated:** [2018年二月8日 20:30 UTC](https://meta.discourse.org/t/email-problem-after-upgrade/80010 "2018-02-08T20:30:12Z")

</div>

运行最新的 Discourse 升级后，我们遇到了一个问题。我们的管理面板上出现了以下提示： 发现您的 Discourse 安装存在一些问题： \*\*\* 有 71 封电子邮件 j…

---

## [Docker disk usage issue c. Sept 1 2017](https://meta.discourse.org/t/docker-disk-usage-issue-c-sept-1-2017/69194)

<div class="topic-metadata">

**Author:** [@angus](https://meta.discourse.org/u/angus)\
**回覆:** 5\
**Last updated:** [2018年二月7日 12:10 UTC](https://meta.discourse.org/t/docker-disk-usage-issue-c-sept-1-2017/69194 "2018-02-07T12:10:36Z")

</div>

If you do a fresh install, as I did recently for my sandbox, you may, despite all the improvements in the cleanup scripts and docker itself, still encounter the dreaded disk usage creep issue; i.e. after rebuilding a num…

---

## [安装脚本中存在轻微拼写问题](https://meta.discourse.org/t/minor-spelling-issue-in-installation-script/79875)

<div class="topic-metadata">

**Author:** [@meglio](https://meta.discourse.org/u/meglio)\
**回覆:** 2\
**Last updated:** [2018年二月6日 05:10 UTC](https://meta.discourse.org/t/minor-spelling-issue-in-installation-script/79875 "2018-02-06T05:10:29Z")

</div>

正在安装全新的 Discourse 实例。似乎缺少某些文件路径或域名： \[image\]

---

## [Stay away from Scaleway](https://meta.discourse.org/t/stay-away-from-scaleway/71373)

<div class="topic-metadata">

**Author:** [@almosnow](https://meta.discourse.org/u/almosnow)\
**回覆:** 10\
**Last updated:** [2018年二月5日 07:09 UTC](https://meta.discourse.org/t/stay-away-from-scaleway/71373 "2018-02-05T07:09:52Z")

</div>

These guys are doing some reaaaaally shady stuff. I signed-up because they seem reasonably cheap for 200Mbps unmetered, but had a lot of trouble trying to set up Discourse, here’s my story. — First attempt I initially…

---

## [从其他论坛软件迁移](https://meta.discourse.org/t/migrating-from-other-forum-software/79523)

<div class="topic-metadata">

**Author:** [@Dominic\_Anthony\_Fras](https://meta.discourse.org/u/Dominic_Anthony_Fras)\
**回覆:** 1\
**Last updated:** [2018年二月1日 04:48 UTC](https://meta.discourse.org/t/migrating-from-other-forum-software/79523 "2018-02-01T04:48:01Z")

</div>

是否有任何实用工具可用于将我的 Invision Community 论坛迁移到你们的平台？ 另外，是否有页面可以查看你们软件可用的插件？

---

## [Installation Failed on CoreOS?](https://meta.discourse.org/t/installation-failed-on-coreos/55789)

<div class="topic-metadata">

**Author:** [@Blackglade](https://meta.discourse.org/u/Blackglade)\
**回覆:** 13\
**Last updated:** [2018年一月31日 11:07 UTC](https://meta.discourse.org/t/installation-failed-on-coreos/55789 "2018-01-31T11:07:05Z")

</div>

Not sure what is happening here, but I can’t seem to get my installation for Discourse working on a CoreOS container by Digital Ocean. Everything went fine until the ouput the very end Here is a pastebin of my cloud …

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

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