# Self-hosting

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

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

**Page:** 131

---

## [无法部署到 Heroku](https://meta.discourse.org/t/cant-deploy-to-heroku/90491)

<div class="topic-metadata">

**Author:** [@zyouchi](https://meta.discourse.org/u/zyouchi)\
**回覆:** 10\
**Last updated:** [2018年七月10日 09:59 UTC](https://meta.discourse.org/t/cant-deploy-to-heroku/90491 "2018-07-10T09:59:06Z")

</div>

大家好。 我正尝试使用 Discourse 发布一项服务。 由于已在本地环境中运行（参考此链接），我现在正尝试参考以下链接将其部署到 Heroku。 在 … 上设置 Discourse

---

## [502 网关错误：Apache 代理多站点配置](https://meta.discourse.org/t/502-bad-gateway-apache-proxy-multi-site-config/91660)

<div class="topic-metadata">

**Author:** [@Aashish\_Gangwani](https://meta.discourse.org/u/Aashish_Gangwani)\
**回覆:** 39\
**Last updated:** [2018年七月9日 17:57 UTC](https://meta.discourse.org/t/502-bad-gateway-apache-proxy-multi-site-config/91660 "2018-07-09T17:57:35Z")

</div>

我有一个网站“forum.6figureswithchris.com”，它之前在代理端口 8080 上运行正常，并且我使用了端口 80 上的 Apache，但突然出现了“502 错误网关”。 ##这是所有功能集成、独立运行的 Discourse Docker 容器…

---

## [多站点，2 个容器及"PG::ConnectionBad: 无法连接到服务器”错误](https://meta.discourse.org/t/multisite-2-containers-and-pg-could-not-connect-to-server-error/91877)

<div class="topic-metadata">

**Author:** [@CamilleRoux](https://meta.discourse.org/u/CamilleRoux)\
**回覆:** 1\
**Last updated:** [2018年七月9日 16:31 UTC](https://meta.discourse.org/t/multisite-2-containers-and-pg-could-not-connect-to-server-error/91877 "2018-07-09T16:31:27Z")

</div>

嗨！我有一个包含容器数据.yml 和 web\_only.yml 的安装。我尝试了多站点安装，但在尝试引导 web\_only 时出现以下错误： rake aborted! PG::ConnectionBad: 无法连接到 t…

---

## [Anyone have any experience with HAproxy?](https://meta.discourse.org/t/anyone-have-any-experience-with-haproxy/29560)

<div class="topic-metadata">

**Author:** [@AstonJ](https://meta.discourse.org/u/AstonJ)\
**回覆:** 6\
**Last updated:** [2015年六月4日 00:44 UTC](https://meta.discourse.org/t/anyone-have-any-experience-with-haproxy/29560 "2015-06-04T00:44:51Z")

</div>

I’ve installed Docker on my server and it seems to be working fine, however I already have several sites on this Apache server and I read that we should avoid mod\_proxy and use HAproxy instead - but I am unsure how to pr…

---

## [在 cPanel 服务器上安装 Discourse](https://meta.discourse.org/t/installing-discourse-on-a-cpanel-server/91648)

<div class="topic-metadata">

**Author:** [@anon94352520](https://meta.discourse.org/u/anon94352520)\
**回覆:** 3\
**Last updated:** [2018年七月5日 19:56 UTC](https://meta.discourse.org/t/installing-discourse-on-a-cpanel-server/91648 "2018-07-05T19:56:31Z")

</div>

是的，在你说它无法安装在共享主机上之前，我想说明我拥有 root 权限。我在 OVH 的 VPS 上运行 CentOS 6，并配备 2GB 内存。是否可行？如果可行，具体如何操作？谢谢 :slight\_smile:

---

## [多站点 SMTP 邮件问题](https://meta.discourse.org/t/multi-site-smtp-email-problem/91461)

<div class="topic-metadata">

**Author:** [@Aashish\_Gangwani](https://meta.discourse.org/u/Aashish_Gangwani)\
**回覆:** 1\
**Last updated:** [2018年七月4日 11:02 UTC](https://meta.discourse.org/t/multi-site-smtp-email-problem/91461 "2018-07-04T11:02:05Z")

</div>

嗨， 我读了 sam 关于多站点配置的帖子，这是 app.yml 的内容： https://gist.github.com/aashishg/0142e9eab87f397dc904acb145913b7a 站点似乎运行正常，但无法发送激活邮件……

---

## [我的 VPS 能运行 Discourse 吗](https://meta.discourse.org/t/my-vps-can-he-run-discourse/91432)

<div class="topic-metadata">

**Author:** [@Oussema\_Tayzon](https://meta.discourse.org/u/Oussema_Tayzon)\
**回覆:** 3\
**Last updated:** [2018年七月3日 13:56 UTC](https://meta.discourse.org/t/my-vps-can-he-run-discourse/91432 "2018-07-03T13:56:39Z")

</div>

我想安装 Discourse。这是我 VPS 的截图，我可以安装它吗？

---

## [Redis 连接超时](https://meta.discourse.org/t/redis-connection-timed-out/76348)

<div class="topic-metadata">

**Author:** [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**回覆:** 29\
**Last updated:** [2018年七月2日 20:39 UTC](https://meta.discourse.org/t/redis-connection-timed-out/76348 "2018-07-02T20:39:08Z")

</div>

我刚用8GB RAM重建了一个站点。显然，sidekiq几天前已经崩溃，现在正试图赶上50万个排队的进程。 它运行一段时间后，redis就停止响应。日志中出现类似的错误： E…

---

## [发送测试邮件时出现问题](https://meta.discourse.org/t/there-was-a-problem-sending-the-test-email/91312)

<div class="topic-metadata">

**Author:** [@JKBaseer](https://meta.discourse.org/u/JKBaseer)\
**回覆:** 6\
**Last updated:** [2018年七月2日 09:28 UTC](https://meta.discourse.org/t/there-was-a-problem-sending-the-test-email/91312 "2018-07-02T09:28:16Z")

</div>

大家好， 我在提交前已经尝试过查看相关话题，但仍然无法解决。 背景： 我使用 DigitalOcean 的一键安装程序安装了 Discourse。该网站运行在 forum.example.org 下，没有任何…

---

## [兼容 CentOS 7](https://meta.discourse.org/t/compatible-with-centos-7/91216)

<div class="topic-metadata">

**Author:** [@BrookieCookie](https://meta.discourse.org/u/BrookieCookie)\
**回覆:** 10\
**Last updated:** [2018年六月29日 22:26 UTC](https://meta.discourse.org/t/compatible-with-centos-7/91216 "2018-06-29T22:26:52Z")

</div>

我已经有一台运行中的服务器，想试试 Discourse。它能在 CentOS 7 上运行吗？还是必须清空服务器并安装 Ubuntu？

---

## [Discourse 发送的邮件列表](https://meta.discourse.org/t/list-of-the-emails-being-sent-from-discourse/90883)

<div class="topic-metadata">

**Author:** [@davidlqid](https://meta.discourse.org/u/davidlqid)\
**回覆:** 2\
**Last updated:** [2018年六月27日 17:00 UTC](https://meta.discourse.org/t/list-of-the-emails-being-sent-from-discourse/90883 "2018-06-27T17:00:47Z")

</div>

你好，我们正在搭建 Discourse 并熟悉相关工具。 我想自定义部分内容，已找到一些相关信息的链接。 在开始动手之前，能否请告诉我，是否可以实现……

---

## [无法设置 SMTP。我试过了所有方法。](https://meta.discourse.org/t/i-cant-setup-smtp-i-tried-everything/90399)

<div class="topic-metadata">

**Author:** [@bereno](https://meta.discourse.org/u/bereno)\
**回覆:** 12\
**Last updated:** [2018年六月25日 16:48 UTC](https://meta.discourse.org/t/i-cant-setup-smtp-i-tried-everything/90399 "2018-06-25T16:48:24Z")

</div>

我首先尝试了 Gmail，但未能成功。随后我尝试了 Elastic Mail，同样没有成功。我没有看到任何错误或问题，但邮件始终无法送达。 我在 AWS 上使用了 Intuz，并已开放了相应端口。请问我该怎么办？

---

## [独立 Discourse 实例的灾难管理](https://meta.discourse.org/t/disaster-management-for-standalone-discourse-instance/90642)

<div class="topic-metadata">

**Author:** [@Aaryan\_Khurana](https://meta.discourse.org/u/Aaryan_Khurana)\
**回覆:** 4\
**Last updated:** [2018年六月25日 09:03 UTC](https://meta.discourse.org/t/disaster-management-for-standalone-discourse-instance/90642 "2018-06-25T09:03:15Z")

</div>

您好，我无法使用 Digital Ocean，因为他们的支付网关在我的国家均无法使用，而且在我的国家获取信用卡也不容易。因此，我使用 Docker 镜像在 AWS EC2 上安装了 Discourse，并使用了 AWS SES 进行 SMTP 配置…

---

## [设置话语遇到困难](https://meta.discourse.org/t/in-trouble-to-set-up-discourse/90582)

<div class="topic-metadata">

**Author:** [@zyouchi](https://meta.discourse.org/u/zyouchi)\
**回覆:** 3\
**Last updated:** [2018年六月24日 09:24 UTC](https://meta.discourse.org/t/in-trouble-to-set-up-discourse/90582 "2018-06-24T09:24:15Z")

</div>

我在设置 Discourse 时遇到了麻烦。 有人有好主意吗？ 我正在按照这个 INSTALL-cloud.md 文档操作： ./discourse-setup ./discourse-setup: 第 93 行：free: 未找到命令 ./discourse-setup: 第 116 行：\[: : 整数表达式错误……

---

## [安装插件后出现 App.yml 错误](https://meta.discourse.org/t/app-yml-error-after-installing-plugin/90499)

<div class="topic-metadata">

**Author:** [@SpaceMonkey](https://meta.discourse.org/u/SpaceMonkey)\
**回覆:** 7\
**Last updated:** [2018年六月22日 19:33 UTC](https://meta.discourse.org/t/app-yml-error-after-installing-plugin/90499 "2018-06-22T19:33:07Z")

</div>

我尝试安装一个新插件，在尝试重建 app.yml 后遇到了此错误。我正在查看该文件，但无法确定错误是什么。我已从文件中移除添加的 .git，但错误仍然...

---

## [Discourse Oops消息错误 500 由插件引起](https://meta.discourse.org/t/discourse-oops-message-error-500-due-to-plugin/90407)

<div class="topic-metadata">

**Author:** [@Ensar](https://meta.discourse.org/u/Ensar)\
**回覆:** 1\
**Last updated:** [2018年六月21日 16:29 UTC](https://meta.discourse.org/t/discourse-oops-message-error-500-due-to-plugin/90407 "2018-06-21T16:29:43Z")

</div>

你好，今天我遇到了这个问题，它是随机出现的 只在我的账户上发生，其他人都没事，我注意到的是我有站点管理员权限，就像站点的所有者和第一个创建的管理员账户一样。 我……

---

## [安装成功，运行一天后突然停止工作](https://meta.discourse.org/t/installed-ok-working-fine-for-one-day-suddenly-stopped-working/90194)

<div class="topic-metadata">

**Author:** [@s-moon](https://meta.discourse.org/u/s-moon)\
**回覆:** 14\
**Last updated:** [2018年六月20日 13:56 UTC](https://meta.discourse.org/t/installed-ok-working-fine-for-one-day-suddenly-stopped-working/90194 "2018-06-20T13:56:49Z")

</div>

大家好， 我最近将 Discourse 论坛从一台旧服务器迁移到了另一台——从旧版 Ubuntu（13？）迁移到了 16.06 版本。据我所知，它运行在一个 Docker 容器中，并配有 Apache/Nginx 前端，以及……

---

## [安装后无法访问](https://meta.discourse.org/t/no-access-after-install/89712)

<div class="topic-metadata">

**Author:** [@SpaceMonkey](https://meta.discourse.org/u/SpaceMonkey)\
**回覆:** 5\
**Last updated:** [2018年六月20日 12:04 UTC](https://meta.discourse.org/t/no-access-after-install/89712 "2018-06-20T12:04:16Z")

</div>

我刚刚完成了安装和向导。下次尝试登录时，我收到以下错误： :frowning: 访问被拒绝 在尝试加载 /admin/dashboard-next.json 时 出错了。

---

## [重建错误：无子进程 (Errno::ECHILD)，来自 /pups/lib/pups/exec\_command.rb:88:in \`block in spawn'](https://meta.discourse.org/t/error-on-rebuild-no-child-processes-errno-echild-from-pups-lib-pups-exec-command-rbin-block-in-spawn/90263)

<div class="topic-metadata">

**Author:** [@Canapin](https://meta.discourse.org/u/Canapin)\
**回覆:** 5\
**Last updated:** [2018年六月20日 10:29 UTC](https://meta.discourse.org/t/error-on-rebuild-no-child-processes-errno-echild-from-pups-lib-pups-exec-command-rbin-block-in-spawn/90263 "2018-06-20T10:29:41Z")

</div>

您好。我想安装一个插件（数据浏览器），因此我在 app.yml 中添加了 git 行。 重建失败： 2018-06-19 23:24:37.160 UTC \[74\] LOG: 正在关闭 186:M 19 Jun 23:24:37.218 # 用户请求关闭... 186:…

---

## [概述：单点登录（SSO）/ OAuth2（此图表是否正确？）](https://meta.discourse.org/t/overview-single-sign-on-sso-oauth2-is-this-chart-correct/90231)

<div class="topic-metadata">

**Author:** [@forumquestions](https://meta.discourse.org/u/forumquestions)\
**回覆:** 3\
**Last updated:** [2018年六月20日 08:00 UTC](https://meta.discourse.org/t/overview-single-sign-on-sso-oauth2-is-this-chart-correct/90231 "2018-06-20T08:00:41Z")

</div>

我对 SSO、OAuth2 等概念有些混淆，因此尝试制作了一个简单的图表来帮助自己建立整体理解。请问这样理解正确吗？ \[我并非开发者，但需要理解这些概念以做出相关决策——谢谢！\] …

---

## [Discourse 激活账户 URL 错误](https://meta.discourse.org/t/discourse-activate-account-url-error/90271)

<div class="topic-metadata">

**Author:** [@bekircem](https://meta.discourse.org/u/bekircem)\
**回覆:** 3\
**Last updated:** [2018年六月20日 06:26 UTC](https://meta.discourse.org/t/discourse-activate-account-url-error/90271 "2018-06-20T06:26:34Z")

</div>

您好， 我搭建了一个新的 Discourse 论坛，但激活邮件中的链接无法使用。点击该链接时显示： “未找到 请求的 URL /u/activate-account/ecdc121ef393c3530\*\*\*\*\*\*\*\* 在此服务器上不存在。 此外……”

---

## [无法找到 /plugins 目录](https://meta.discourse.org/t/unable-to-find-plugins-dir/90041)

<div class="topic-metadata">

**Author:** [@SpaceMonkey](https://meta.discourse.org/u/SpaceMonkey)\
**回覆:** 2\
**Last updated:** [2018年六月20日 00:53 UTC](https://meta.discourse.org/t/unable-to-find-plugins-dir/90041 "2018-06-20T00:53:09Z")

</div>

我已安装了第一份 Discourse。我正在按照“安装插件”的说明操作，但当我尝试使用 \`cd $home/plugins\` 切换目录时，却发现没有 plugins 目录…

---

## [无法升级，因为 Docker 版本过旧](https://meta.discourse.org/t/cannot-upgrade-due-to-old-version-of-docker/90246)

<div class="topic-metadata">

**Author:** [@Vaping\_Community](https://meta.discourse.org/u/Vaping_Community)\
**回覆:** 4\
**Last updated:** [2018年六月19日 20:12 UTC](https://meta.discourse.org/t/cannot-upgrade-due-to-old-version-of-docker/90246 "2018-06-19T20:12:33Z")

</div>

进入 admin/upgrade 后，系统提示： 您正在运行旧版本的 Discourse 镜像。 在运行最新镜像之前，无法通过 Web 界面进行升级。 为此，请使用 SSH 登录到您的服务器并运行：…

---

## [“postgres 已在运行”上](https://meta.discourse.org/t/postgres-already-running-on/90097)

<div class="topic-metadata">

**Author:** [@Dieter\_Menne](https://meta.discourse.org/u/Dieter_Menne)\
**回覆:** 1\
**Last updated:** [2018年六月18日 09:18 UTC](https://meta.discourse.org/t/postgres-already-running-on/90097 "2018-06-18T09:18:26Z")

</div>

我有一个已正常运行的 Discourse 安装，并且已经在 Ubuntu Xenial 自有服务器上多次重建。 当我尝试重建时，收到了以下消息，这与旧帖 \[已解决\] Bootstrap 失败，… 中的情况类似。

---

## [在 Kubernetes 上安装 Discourse](https://meta.discourse.org/t/installing-discourse-on-kubernetes/90050)

<div class="topic-metadata">

**Author:** [@Martin\_Delille](https://meta.discourse.org/u/Martin_Delille)\
**回覆:** 1\
**Last updated:** [2018年六月18日 08:18 UTC](https://meta.discourse.org/t/installing-discourse-on-kubernetes/90050 "2018-06-18T08:18:05Z")

</div>

我想在 Google Cloud Kubernetes 上安装 Discourse。

---

## [我们能否在共享服务器上安装 Discourse？](https://meta.discourse.org/t/will-we-ever-be-able-to-install-discourse-on-shared-servers/88722)

<div class="topic-metadata">

**Author:** [@thephotographyblog](https://meta.discourse.org/u/thephotographyblog)\
**回覆:** 55\
**Last updated:** [2018年六月16日 17:21 UTC](https://meta.discourse.org/t/will-we-ever-be-able-to-install-discourse-on-shared-servers/88722 "2018-06-16T17:21:13Z")

</div>

我了解 Discourse 需要特定的托管环境才能运行，无法在共享主机上运行。大多数人推荐使用 Digital Ocean、VULTR 或类似的解决方案。我尚未发现或收到提供…

---

## [这是Discourse问题还是DNS问题？](https://meta.discourse.org/t/is-this-a-discourse-or-dns-issue/90021)

<div class="topic-metadata">

**Author:** [@SamBehner](https://meta.discourse.org/u/SamBehner)\
**回覆:** 30\
**Last updated:** [2018年六月16日 15:55 UTC](https://meta.discourse.org/t/is-this-a-discourse-or-dns-issue/90021 "2018-06-16T15:55:09Z")

</div>

我在 Linux 机器上完成了安装，运行了 ./discourse-setup，一切顺利。系统提示引导设置需要几分钟时间。我已将网站配置为使用 IP 地址…

---

## [VM 上安装失败](https://meta.discourse.org/t/install-failed-on-vm/89761)

<div class="topic-metadata">

**Author:** [@gstlouis](https://meta.discourse.org/u/gstlouis)\
**回覆:** 8\
**Last updated:** [2018年六月15日 10:27 UTC](https://meta.discourse.org/t/install-failed-on-vm/89761 "2018-06-15T10:27:04Z")

</div>

我尝试在 Virtualmin 上安装 Discourse。在虚拟机上安装是否可行？我使用了 Cloudmin，并已将一个基础的 CentOS 7 镜像更新到最新。随后，我按照下方 Tecmint 的链接中的说明进行操作： D…

---

## [需要快速排查安装问题](https://meta.discourse.org/t/need-a-fast-troubleshoot-installation/89866)

<div class="topic-metadata">

**Author:** [@Daniel\_Nevoigt](https://meta.discourse.org/u/Daniel_Nevoigt)\
**回覆:** 3\
**Last updated:** [2018年六月14日 11:03 UTC](https://meta.discourse.org/t/need-a-fast-troubleshoot-installation/89866 "2018-06-14T11:03:34Z")

</div>

大家好，希望你们能帮我解决这个问题。我刚在装有 Plesk 的 Ubuntu 16.04 系统上安装了 Discourse，参考了这份指南和官方设置文档。指南非常清晰易懂。我完成了所有步骤……

---

## [sidekiq 队列是否可能是 500 错误的原因？](https://meta.discourse.org/t/could-sidekiq-queue-be-reason-for-500-errors/89631)

<div class="topic-metadata">

**Author:** [@danmaby](https://meta.discourse.org/u/danmaby)\
**回覆:** 30\
**Last updated:** [2018年六月13日 11:37 UTC](https://meta.discourse.org/t/could-sidekiq-queue-be-reason-for-500-errors/89631 "2018-06-13T11:37:10Z")

</div>

您好，我已成功完成从 phpBB3 到 Discourse 的迁移。新安装系统在数小时内运行完美，但突然服务器开始频繁崩溃并返回 500 错误。每次都需要重启……

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

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