# Self-hosting

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

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

**Page:** 134

---

## [PG throws could not resize shared memory segment 错误](https://meta.discourse.org/t/pg-throws-could-not-resize-shared-memory-segment-error/84744)

<div class="topic-metadata">

**Author:** [@Gunnar](https://meta.discourse.org/u/Gunnar)\
**回覆:** 5\
**Last updated:** [2018年四月6日 20:55 UTC](https://meta.discourse.org/t/pg-throws-could-not-resize-shared-memory-segment-error/84744 "2018-04-06T20:55:37Z")

</div>

升级到Postgres 10后（使用‘launcher rebuild app’两次），我们在/logs中开始看到类似这样的错误： 在异常应用中处理中断时失败： PG::DiskFull：错误：无法调整共享尺寸...

---

## [无需 SWAP 安装 Discourse](https://meta.discourse.org/t/discourse-installation-without-swap/84735)

<div class="topic-metadata">

**Author:** [@HU\_Telestem](https://meta.discourse.org/u/HU_Telestem)\
**回覆:** 3\
**Last updated:** [2018年四月6日 18:07 UTC](https://meta.discourse.org/t/discourse-installation-without-swap/84735 "2018-04-06T18:07:02Z")

</div>

你好， 有没有办法在不使用 SWAP 的情况下安装 Discourse？因为我的 VPS 使用的是 OpenVZ。 我的帖子和用户数量不会太多，所以 2GB 内存应该足够了吧？

---

## [未能引导 web\_only - 无 cid 文件但完全是全新构建](https://meta.discourse.org/t/failed-to-bootstrap-web-only-no-cid-file-but-totally-fresh-build/84709)

<div class="topic-metadata">

**Author:** [@ThriceGood](https://meta.discourse.org/u/ThriceGood)\
**回覆:** 2\
**Last updated:** [2018年四月6日 12:54 UTC](https://meta.discourse.org/t/failed-to-bootstrap-web-only-no-cid-file-but-totally-fresh-build/84709 "2018-04-06T12:54:28Z")

</div>

你好， 我正在使用 data.yml 和 web\_only.yml 配置进行第一次 discourse 构建。我没有运行中的容器，也从未运行过 web\_only 容器。data.yml 成功引导。但 web\_only.yml……

---

## [卸载 Discourse 后，错误页面仍然显示？](https://meta.discourse.org/t/uninstalled-discourse-error-page-still-shows/84661)

<div class="topic-metadata">

**Author:** [@Zarken](https://meta.discourse.org/u/Zarken)\
**回覆:** 4\
**Last updated:** [2018年四月5日 23:39 UTC](https://meta.discourse.org/t/uninstalled-discourse-error-page-still-shows/84661 "2018-04-05T23:39:45Z")

</div>

我已删除Discourse以尝试修复一些无关的网页，但在尝试访问我的域名时，似乎显示了一个与discourse（我相信）相关的错误页面……我本应该卸载Discourse和Docker的……可是……

---

## [帮助 .. 重建应用失败](https://meta.discourse.org/t/help-rebuild-app-failed/84538)

<div class="topic-metadata">

**Author:** [@TerminalAddict](https://meta.discourse.org/u/TerminalAddict)\
**回覆:** 20\
**Last updated:** [2018年四月4日 15:46 UTC](https://meta.discourse.org/t/help-rebuild-app-failed/84538 "2018-04-04T15:46:24Z")

</div>

救命……我今天像往常一样执行了 ./launcher rebuild app。 出现了一个错误…… 有什么建议吗？看起来像是 Ruby 库出了问题？ I, \[2018-04-04T07:06:26.498684 #16\] INFO -- : \> cd /var/www/discour…

---

## [使用 Nginx + Discourse 进行多网站托管](https://meta.discourse.org/t/using-multiple-websites-with-nginx-discourse/84467)

<div class="topic-metadata">

**Author:** [@Zarken](https://meta.discourse.org/u/Zarken)\
**回覆:** 14\
**Last updated:** [2018年四月4日 04:11 UTC](https://meta.discourse.org/t/using-multiple-websites-with-nginx-discourse/84467 "2018-04-04T04:11:02Z")

</div>

我已经成功设置了Nginx，使其将Discourse作为主要站点…但我在添加带前缀的其他站点时遇到困难，例如addons.domain.com 我按照多个在线教程操作，结果都遇到了问题…

---

## [每个容器的硬件要求？](https://meta.discourse.org/t/hardware-requirements-for-each-container/84504)

<div class="topic-metadata">

**Author:** [@paddy](https://meta.discourse.org/u/paddy)\
**回覆:** 2\
**Last updated:** [2018年四月3日 23:54 UTC](https://meta.discourse.org/t/hardware-requirements-for-each-container/84504 "2018-04-03T23:54:23Z")

</div>

所以我查看了官方硬件建议，它们给出了（非常棒！非常有用！）针对（似乎是）在单个主机上运行的所有容器的硬件建议。然而，我希望能……

---

## [How to reload configuration after app.yml changes?](https://meta.discourse.org/t/how-to-reload-configuration-after-app-yml-changes/26363)

<div class="topic-metadata">

**Author:** [@ralf](https://meta.discourse.org/u/ralf)\
**回覆:** 7\
**Last updated:** [2018年四月3日 22:08 UTC](https://meta.discourse.org/t/how-to-reload-configuration-after-app-yml-changes/26363 "2018-04-03T22:08:08Z")

</div>

Hi there, I love Discourse and the community. Here is a quick question: Say I’ve made some changes to app.yaml, like modifying SMTP settings, is the only and correct way of updating the running config via the ./launcher…

---

## [不确定如何开始一个网站项目](https://meta.discourse.org/t/unsure-about-how-to-start-a-website-project/84403)

<div class="topic-metadata">

**Author:** [@DivineByZero](https://meta.discourse.org/u/DivineByZero)\
**回覆:** 2\
**Last updated:** [2018年四月3日 02:59 UTC](https://meta.discourse.org/t/unsure-about-how-to-start-a-website-project/84403 "2018-04-03T02:59:04Z")

</div>

嗨，我是Kimmie。 我对PHP、MySQL、HTML、CSS、JavaScript和Docker有一些经验，但你知道的，其中一些比其他的多——好吧，PHP的经验更丰富一些。 预先为这段话的模糊不清表示歉意……

---

## [Discourse 如何在服务器的多 CPU 核心环境中发挥作用？](https://meta.discourse.org/t/how-does-discourse-take-advantage-of-multiple-cpu-cores-environment-on-the-server/84278)

<div class="topic-metadata">

**Author:** [@W.M](https://meta.discourse.org/u/W.M)\
**回覆:** 5\
**Last updated:** [2018年三月31日 10:59 UTC](https://meta.discourse.org/t/how-does-discourse-take-advantage-of-multiple-cpu-cores-environment-on-the-server/84278 "2018-03-31T10:59:09Z")

</div>

据我所知，尽管存在其他实现，Ruby MRI 并未利用多个 CPU 核心。Discourse 是如何处理这一问题的？

---

## [aufs/overlay2 存储驱动（docker）](https://meta.discourse.org/t/aufs-overlay2-storage-driver-docker/77968)

<div class="topic-metadata">

**Author:** [@Steven](https://meta.discourse.org/u/Steven)\
**回覆:** 2\
**Last updated:** [2018年三月30日 21:17 UTC](https://meta.discourse.org/t/aufs-overlay2-storage-driver-docker/77968 "2018-03-30T21:17:38Z")

</div>

你好，Discourse 团队，我有个关于 Docker 的小问题。我在这方面完全不是专家，但之前你们曾推荐 Docker 使用 aufs 存储驱动。一年前，当我使用命令 wget -qO- https://get… 时……

---

## [HTTPS 拒绝在直接 IP 地址上连接](https://meta.discourse.org/t/https-refused-to-connect-at-a-direct-ip-address/84017)

<div class="topic-metadata">

**Author:** [@trangchongcheng](https://meta.discourse.org/u/trangchongcheng)\
**回覆:** 2\
**Last updated:** [2018年三月28日 06:30 UTC](https://meta.discourse.org/t/https-refused-to-connect-at-a-direct-ip-address/84017 "2018-03-28T06:30:19Z")

</div>

\[40\] 今天，我在 DigitalOcean 上创建了两台 VPS。 我打算用它们来安装 Discourse。 但目前它们只能在 HTTP 下运行。 当我为 Discourse 配置 HTTPS 时，会出现“拒绝连接”的错误。 我在两台 VPS 上都尝试过，问题依旧。 我使用了 …

---

## [有没有好的俄罗斯Discourse托管服务？](https://meta.discourse.org/t/good-russian-discourse-hosting/83904)

<div class="topic-metadata">

**Author:** [@wml\_flc](https://meta.discourse.org/u/wml_flc)\
**回覆:** 1\
**Last updated:** [2018年三月26日 20:50 UTC](https://meta.discourse.org/t/good-russian-discourse-hosting/83904 "2018-03-26T20:50:17Z")

</div>

你好！ 谁知道有哪些好的俄语 Discourse 托管服务，或者拥有俄罗斯数据中心的托管服务？ 谢谢！

---

## [使用 Bitnami 安装/部署 Discourse](https://meta.discourse.org/t/install-deploy-discourse-with-bitmani/83798)

<div class="topic-metadata">

**Author:** [@mdreamer](https://meta.discourse.org/u/mdreamer)\
**回覆:** 3\
**Last updated:** [2018年三月26日 14:09 UTC](https://meta.discourse.org/t/install-deploy-discourse-with-bitmani/83798 "2018-03-26T14:09:42Z")

</div>

你好， 我现在正在研究如何以及在哪里部署我的 Discourse 安装。选项包括： - 使用 Docker 部署在 AWS 上 - 使用 Bitnami 部署在 AWS 上 据我所知，截至目前，与...相比，我尚未发现 Bitnami 存在任何劣势……

---

## [从 Elastic 迁移到 Mailgun 的问题](https://meta.discourse.org/t/issues-moving-from-elastic-to-mailgun/83813)

<div class="topic-metadata">

**Author:** [@Francois\_Douville](https://meta.discourse.org/u/Francois_Douville)\
**回覆:** 10\
**Last updated:** [2018年三月25日 18:27 UTC](https://meta.discourse.org/t/issues-moving-from-elastic-to-mailgun/83813 "2018-03-25T18:27:45Z")

</div>

我从 Elastic 切换到 Mailgun，但我的 443 端口出现了问题。我的网站无法访问，并收到以下消息： 请检查您的网络配置，确保允许连接到 443 端口…

---

## [在 app.yml 中未找到预期的“-”指示符](https://meta.discourse.org/t/did-not-find-expected-indicator-in-app-yml/83800)

<div class="topic-metadata">

**Author:** [@adrianbblk](https://meta.discourse.org/u/adrianbblk)\
**回覆:** 6\
**Last updated:** [2018年三月25日 14:56 UTC](https://meta.discourse.org/t/did-not-find-expected-indicator-in-app-yml/83800 "2018-03-25T14:56:42Z")

</div>

大家好， 我刚刚尝试重新构建应用，但遇到了以下错误： ()：在解析块集合时，在第 11 行第 3 列未找到预期的 '-' 指示符 -e LANG=en\_US.UTF-8 YAML 语法错误。请检查…

---

## [抱歉又发关于Haproxy/Apache端口80的帖子，但](https://meta.discourse.org/t/sorry-for-another-haproxy-apache-port-80-post-but/83513)

<div class="topic-metadata">

**Author:** [@subtenko](https://meta.discourse.org/u/subtenko)\
**回覆:** 4\
**Last updated:** [2018年三月22日 22:15 UTC](https://meta.discourse.org/t/sorry-for-another-haproxy-apache-port-80-post-but/83513 "2018-03-22T22:15:17Z")

</div>

我已经迷茫地绕圈圈大约1-2周了。 这是我自从发现端口80已经被apache占用（我有其他网站在该服务上）以来所做的事情。 我尝试运行./discourse-setup，就像你建议的那样……

---

## [Suggestion for good VPS to host Discourse ? Digital ocean or Linode?](https://meta.discourse.org/t/suggestion-for-good-vps-to-host-discourse-digital-ocean-or-linode/8852)

<div class="topic-metadata">

**Author:** [@srikyada](https://meta.discourse.org/u/srikyada)\
**回覆:** 43\
**Last updated:** [2018年三月24日 15:52 UTC](https://meta.discourse.org/t/suggestion-for-good-vps-to-host-discourse-digital-ocean-or-linode/8852 "2018-03-24T15:52:29Z")

</div>

Any suggestions for a good vps provider to host discourse? Any feedback for Liniode vs Digital ocean? Digital Ocean’s $20 plan seems to be good. It has 2GB RAM and 2 cores. Not sure if 2GB RAM is sufficient though? Plea…

---

## [遵循安装指南后出现 DNS 问题](https://meta.discourse.org/t/dns-problem-after-following-installation-guide/83212)

<div class="topic-metadata">

**Author:** [@Judith](https://meta.discourse.org/u/Judith)\
**回覆:** 8\
**Last updated:** [2018年三月22日 09:39 UTC](https://meta.discourse.org/t/dns-problem-after-following-installation-guide/83212 "2018-03-22T09:39:12Z")

</div>

我按照标准安装指南操作：在 DigitalOcean 上新建一个 droplet，解压 Discourse 镜像，将其连接到我们的 SparkPost 邮件服务，等等。一切运行完美——为团队点赞…

---

## [Digital Ocean 一键安装与手动安装对比](https://meta.discourse.org/t/digital-ocean-one-click-install-vs-manual-install/83464)

<div class="topic-metadata">

**Author:** [@akhil](https://meta.discourse.org/u/akhil)\
**回覆:** 2\
**Last updated:** [2018年三月21日 13:58 UTC](https://meta.discourse.org/t/digital-ocean-one-click-install-vs-manual-install/83464 "2018-03-21T13:58:57Z")

</div>

你好， 我计划在子域名上安装 Discourse。最佳的托管选项是 Digital Ocean。 我只有基本的 Linux 知识，但我知道如何手动安装 Discourse、配置 SSL 等。 但是，我…

---

## [考虑使用 Discourse](https://meta.discourse.org/t/thinking-about-using-discourse/81532)

<div class="topic-metadata">

**Author:** [@Gavin\_Pedley](https://meta.discourse.org/u/Gavin_Pedley)\
**回覆:** 2\
**Last updated:** [2018年三月20日 22:41 UTC](https://meta.discourse.org/t/thinking-about-using-discourse/81532 "2018-03-20T22:41:48Z")

</div>

大家好，我正在考虑在未来的项目中采用 Discourse。我在传统 PHP 和 MySQL 论坛方面经验丰富，例如 IPS、XenForo 等。Discourse 对我来说还比较新，而且……

---

## [通过 SSO 提交语言设置](https://meta.discourse.org/t/submitting-language-setting-via-sso/83467)

<div class="topic-metadata">

**Author:** [@sbec](https://meta.discourse.org/u/sbec)\
**回覆:** 3\
**Last updated:** [2018年三月21日 09:53 UTC](https://meta.discourse.org/t/submitting-language-setting-via-sso/83467 "2018-03-21T09:53:38Z")

</div>

嘿， 我们正在考虑将 Discourse 与另一个主流平台的单点登录（SSO）集成。用户凭证将通过 SSO 传输。问题是，是否必须从该平台传输用户的语言设置……

---

## [Digital Ocean Alternative](https://meta.discourse.org/t/digital-ocean-alternative/73220)

<div class="topic-metadata">

**Author:** [@burningman](https://meta.discourse.org/u/burningman)\
**回覆:** 5\
**Last updated:** [2018年三月20日 09:24 UTC](https://meta.discourse.org/t/digital-ocean-alternative/73220 "2018-03-20T09:24:24Z")

</div>

Hey everyone here, Can any one suggest me the alternative of DigitalOcean. They are wasting a lot of time now by “putting account under review” and this is really bad. I was going to install “discourse” on digital ocea…

---

## [What are the cheapest ways to host a Discourse?](https://meta.discourse.org/t/what-are-the-cheapest-ways-to-host-a-discourse/40683)

<div class="topic-metadata">

**Author:** [@CamilleRoux](https://meta.discourse.org/u/CamilleRoux)\
**回覆:** 1\
**Last updated:** [2016年三月7日 09:41 UTC](https://meta.discourse.org/t/what-are-the-cheapest-ways-to-host-a-discourse/40683 "2016-03-07T09:41:21Z")

</div>

Hi, What are the cheapest ways to host a Discourse currently? (for small communities)

---

## [在'inmotion hosting'上安装discourse](https://meta.discourse.org/t/installing-discourse-on-inmotion-hosting/72757)

<div class="topic-metadata">

**Author:** [@Rohit\_Singh](https://meta.discourse.org/u/Rohit_Singh)\
**回覆:** 8\
**Last updated:** [2018年三月20日 06:27 UTC](https://meta.discourse.org/t/installing-discourse-on-inmotion-hosting/72757 "2018-03-20T06:27:51Z")

</div>

你好， 我在‘inmotion hosting’上托管了一个Wordpress网站，采用每年约50美元的基础计划。 现在我想在我的网站添加一个论坛。 我是否需要选择另一个托管提供商，比如Digital Ocean，等等……

---

## [在 Amazon EC2（Ubuntu）安装期间出现 Bootstrap 错误](https://meta.discourse.org/t/bootstrap-error-during-installation-at-amazon-ec2-ubuntu/82998)

<div class="topic-metadata">

**Author:** [@abdo](https://meta.discourse.org/u/abdo)\
**回覆:** 2\
**Last updated:** [2018年三月17日 20:59 UTC](https://meta.discourse.org/t/bootstrap-error-during-installation-at-amazon-ec2-ubuntu/82998 "2018-03-17T20:59:05Z")

</div>

你好， 我已按照以下指南操作：Discourse 设置（使用 AWS）| Andrew Stroup 的博客，以通过 Amazon EC2 设置 Discourse 实例。一切似乎运行顺利，直到我执行到这一步：“sudo ./launcher boo…”

---

## [修改 app.yml 中的区域设置不会安装 Discourse](https://meta.discourse.org/t/changing-locale-in-app-yml-doesnt-install-discourse/82939)

<div class="topic-metadata">

**Author:** [@Umashankar\_Ankuri](https://meta.discourse.org/u/Umashankar_Ankuri)\
**回覆:** 3\
**Last updated:** [2018年三月14日 05:09 UTC](https://meta.discourse.org/t/changing-locale-in-app-yml-doesnt-install-discourse/82939 "2018-03-14T05:09:50Z")

</div>

我正在尝试用本地语言设置 Discourse。在这样做之前，我想先启动一个示例 droplet，使用除 en.US.UTF-8 以外的其他区域设置。 我已经在 app.yml 中更改了区域设置： LANG: cs\_CZ.UTF-8 DISCOURSE\_DEFAULT\_L…

---

## [Apache 占用了端口 80，导致 Discourse 无法启动](https://meta.discourse.org/t/apache-took-port-80-and-caused-discourse-not-to-start/82610)

<div class="topic-metadata">

**Author:** [@mofosyne](https://meta.discourse.org/u/mofosyne)\
**回覆:** 4\
**Last updated:** [2018年三月11日 13:10 UTC](https://meta.discourse.org/t/apache-took-port-80-and-caused-discourse-not-to-start/82610 "2018-03-11T13:10:24Z")

</div>

我仍不确定发生了什么，但基本上在今天更新后，我发现我的服务器崩溃了。 staff\_user 动作 主题 创建时间 详情 上下文 mofosyne 自定义\_staff 2018-03-08 23:12:34 UTC “从\_versio…

---

## [在安装文档中添加 Discourse 的 beta 含义](https://meta.discourse.org/t/add-the-discourse-meaning-of-beta-to-the-install-doc/82670)

<div class="topic-metadata">

**Author:** [@willemb2](https://meta.discourse.org/u/willemb2)\
**回覆:** 1\
**Last updated:** [2018年三月11日 02:57 UTC](https://meta.discourse.org/t/add-the-discourse-meaning-of-beta-to-the-install-doc/82670 "2018-03-11T02:57:55Z")

</div>

如果你是在微软环境中长大的，那么“beta”这个词听起来就像：尖叫：蜘蛛：闪电云：救护车。 凭借那份出色的30分钟安装文档，我顺利完成了安装，没有任何故障，并且它一直运行……

---

## [Nginx 测试阶段报错](https://meta.discourse.org/t/nginx-error-at-testing-stage/82102)

<div class="topic-metadata">

**Author:** [@Irwin\_Binamungu](https://meta.discourse.org/u/Irwin_Binamungu)\
**回覆:** 8\
**Last updated:** [2018年三月10日 05:37 UTC](https://meta.discourse.org/t/nginx-error-at-testing-stage/82102 "2018-03-10T05:37:51Z")

</div>

\[kirizagroup00001@localhost nginx\]$ nginx -t nginx: \[alert\] 无法打开错误日志文件：open() “/var/log/nginx/error.log” 失败 (13: 权限被拒绝) 2018/03/04 14:29:21 \[warn\] 2495#0: “user” 指令使 …

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

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