# Self-hosting

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

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

**Page:** 122

---

## [自最新升级以来出现异常的CPU使用率](https://meta.discourse.org/t/strange-cpu-usage-since-latest-upgrade/113760)

<div class="topic-metadata">

**Author:** [@schungx](https://meta.discourse.org/u/schungx)\
**回覆:** 14\
**Last updated:** [2019年四月11日 05:13 UTC](https://meta.discourse.org/t/strange-cpu-usage-since-latest-upgrade/113760 "2019-04-11T05:13:14Z")

</div>

自从最新更新至 v2.3.0.beta6+148 以来，CPU 使用率上升了约 30%。不知道是什么原因导致的。 网络流量： 磁盘活动： 有什么建议吗？ 快速谜题：我是什么时候升级的？

---

## [Banned users re-signing up through proxy IPs](https://meta.discourse.org/t/banned-users-re-signing-up-through-proxy-ips/54557)

<div class="topic-metadata">

**Author:** [@scottfsmith](https://meta.discourse.org/u/scottfsmith)\
**回覆:** 9\
**Last updated:** [2019年四月11日 01:34 UTC](https://meta.discourse.org/t/banned-users-re-signing-up-through-proxy-ips/54557 "2019-04-11T01:34:31Z")

</div>

We have been playing whack-a mole with a few banned users recently. Once their IP blocks were banned they switched to using proxy IPs. Now what I am having to do is manually look at the registrations and if its a serve…

---

## [未被俄罗斯封锁的 VPS 提供商？](https://meta.discourse.org/t/vps-provider-that-is-not-blocked-in-russia/113940)

<div class="topic-metadata">

**Author:** [@slackmoehrle](https://meta.discourse.org/u/slackmoehrle)\
**回覆:** 6\
**Last updated:** [2019年四月10日 13:51 UTC](https://meta.discourse.org/t/vps-provider-that-is-not-blocked-in-russia/113940 "2019-04-10T13:51:41Z")

</div>

我们使用 Digital Ocean，最近被告知我们的论坛在俄罗斯和中国部分地区被封锁。我联系了 Digital Ocean，他们回复称封锁不在其控制范围内，并建议迁移到另一个...

---

## [Device "docker0" does not exist](https://meta.discourse.org/t/device-docker0-does-not-exist/30216)

<div class="topic-metadata">

**Author:** [@Fabian](https://meta.discourse.org/u/Fabian)\
**回覆:** 36\
**Last updated:** [2019年四月10日 11:53 UTC](https://meta.discourse.org/t/device-docker0-does-not-exist/30216 "2019-04-10T11:53:06Z")

</div>

I just tried to install discourse on my dedicated ubuntu server. I followed this tutorial: discourse/docs/INSTALL-cloud.md at main · discourse/discourse · GitHub of course I do not have a cloud or anything, but my serve…

---

## [关于 jwilder/nginx-proxy 教程的讨论？](https://meta.discourse.org/t/discourse-with-jwilder-nginx-proxy-howtos/94604)

<div class="topic-metadata">

**Author:** [@confused](https://meta.discourse.org/u/confused)\
**回覆:** 11\
**Last updated:** [2019年四月6日 00:19 UTC](https://meta.discourse.org/t/discourse-with-jwilder-nginx-proxy-howtos/94604 "2019-04-06T00:19:59Z")

</div>

大家好， 我想在 nginx-proxy（GitHub - nginx-proxy/nginx-proxy：使用 docker-gen 的 Docker 容器自动化 nginx 代理）后面部署 Discourse。这似乎是一个非常流行的代理，而且我已经有了它 …

---

## [Cloudflare Real-IP 通过 Apache 实现](https://meta.discourse.org/t/cloudflare-real-ip-via-apache/113482)

<div class="topic-metadata">

**Author:** [@RyanGarber](https://meta.discourse.org/u/RyanGarber)\
**回覆:** 3\
**Last updated:** [2019年四月5日 20:50 UTC](https://meta.discourse.org/t/cloudflare-real-ip-via-apache/113482 "2019-04-05T20:50:39Z")

</div>

嘿，我运营着一个正在 gaining 影响力的 Discourse 论坛，我一直在花费数小时寻找如何将用户的真实 IP 地址转发给 Discourse，而不是 Cloudflare 的 IP。 我看到的每一个主题中，人们都在问…

---

## [需要关于 SMTP 和 Steam 登录的帮助](https://meta.discourse.org/t/need-help-regarding-smtp-and-steam-login/113282)

<div class="topic-metadata">

**Author:** [@Rapadant\_Networks](https://meta.discourse.org/u/Rapadant_Networks)\
**回覆:** 19\
**Last updated:** [2019年四月5日 01:58 UTC](https://meta.discourse.org/t/need-help-regarding-smtp-and-steam-login/113282 "2019-04-05T01:58:31Z")

</div>

试图弄清楚如何设置 Discourse 论坛，但在 SMTP 配置和 Gmail 方面遇到了一些问题。基本上，我想知道如何禁用对 SMTP 服务器的需求，因为我打算使用 St…

---

## [从 1.6.0.Beta10+9 升级到 2.3.0.beta6 时遇到的问题](https://meta.discourse.org/t/issues-upgrading-from-1-6-0-beta10-9-to-2-3-0-beta6/113324)

<div class="topic-metadata">

**Author:** [@Ashwani\_K\_Goel](https://meta.discourse.org/u/Ashwani_K_Goel)\
**回覆:** 10\
**Last updated:** [2019年四月4日 12:08 UTC](https://meta.discourse.org/t/issues-upgrading-from-1-6-0-beta10-9-to-2-3-0-beta6/113324 "2019-04-04T12:08:03Z")

</div>

你好 我正尝试通过管理员面板中的“点击此处升级”选项，将我的 Discourse 论坛从 1.6.0.Beta10+9 升级到 2.3.0.beta6。 请参见此截图：https://www.intecons.com/AMB%2067.png 然而，……

---

## [高可用性环境中 Discourse 共享卷的用途](https://meta.discourse.org/t/purpose-of-the-discourse-shared-volume-in-a-high-availability-setup/113399)

<div class="topic-metadata">

**Author:** [@nicktrav](https://meta.discourse.org/u/nicktrav)\
**回覆:** 3\
**Last updated:** [2019年四月4日 01:43 UTC](https://meta.discourse.org/t/purpose-of-the-discourse-shared-volume-in-a-high-availability-setup/113399 "2019-04-04T01:43:12Z")

</div>

你好！我想知道在 Discourse 部署中，共享卷的作用是什么？ 背景是：我们已在 Kubernetes 集群（GKE）中成功部署并运行了 Discourse，但我们希望扩展实例数量……

---

## [未收到注册邮件，但 SMTP 服务器运行正常](https://meta.discourse.org/t/dont-get-registration-mail-but-smtp-server-works-fine/113272)

<div class="topic-metadata">

**Author:** [@IMSth](https://meta.discourse.org/u/IMSth)\
**回覆:** 6\
**Last updated:** [2019年四月3日 21:37 UTC](https://meta.discourse.org/t/dont-get-registration-mail-but-smtp-server-works-fine/113272 "2019-04-03T21:37:19Z")

</div>

你好 我想安装 Discourse，但我遇到了一个大问题。我没有收到注册邮件。 我使用 Elastic Email 作为 SMTP 提供商。我检查了连接（使用 Node 应用）——凭据正确，并且我可以 …

---

## [./launcher rebuild app 在 LANG 行出现语法错误](https://meta.discourse.org/t/launcher-rebuild-app-syntax-error-on-lang-line/113251)

<div class="topic-metadata">

**Author:** [@bobdude](https://meta.discourse.org/u/bobdude)\
**回覆:** 1\
**Last updated:** [2019年四月2日 17:53 UTC](https://meta.discourse.org/t/launcher-rebuild-app-syntax-error-on-lang-line/113251 "2019-04-02T17:53:08Z")

</div>

在解析块映射时未找到预期的键，位于第 40 行第 3 列 -e LANG=en\_US.UTF-8 YAML 语法错误。请检查您的 … app.yml 第 39 行 env: LANG: en\_US.UTF-8 # DISCOURSE\_DEFAULT\_LOCALE: en 所以我……

---

## [工作进程超过定义？](https://meta.discourse.org/t/worker-process-is-more-than-defined/113230)

<div class="topic-metadata">

**Author:** [@Vencent](https://meta.discourse.org/u/Vencent)\
**回覆:** 13\
**Last updated:** [2019年四月2日 16:49 UTC](https://meta.discourse.org/t/worker-process-is-more-than-defined/113230 "2019-04-02T16:49:44Z")

</div>

我使用 discourse\_docker 生成 Docker 镜像，然后部署到 Kubernetes。在我的容器 web\_only.yml 中： env: UNICORN\_WORKERS: 2 然而，如果我在容器中执行 top 命令，可以看到有 4 个工作进程： 这是否超出了预期……

---

## [安装 Docker 和 Git 时遇到问题](https://meta.discourse.org/t/trouble-installing-docker-and-git/113037)

<div class="topic-metadata">

**Author:** [@lastarbucks](https://meta.discourse.org/u/lastarbucks)\
**回覆:** 8\
**Last updated:** [2019年四月2日 16:32 UTC](https://meta.discourse.org/t/trouble-installing-docker-and-git/113037 "2019-04-02T16:32:30Z")

</div>

以 root 用户身份输入以下命令后： wget -qO- https://get.docker.com/ | sh 我收到了以下消息： 正在执行 Docker 安装脚本，提交哈希：cfba462 两秒后，Linux 似乎并未开始安装。没有错误消息或其他提示……

---

## [无法发送电子邮件，存在证书问题](https://meta.discourse.org/t/cant-send-email-with-certificate-issue/113207)

<div class="topic-metadata">

**Author:** [@kyu](https://meta.discourse.org/u/kyu)\
**回覆:** 2\
**Last updated:** [2019年四月2日 13:55 UTC](https://meta.discourse.org/t/cant-send-email-with-certificate-issue/113207 "2019-04-02T13:55:33Z")

</div>

尝试设置 Discourse 时，邮件配置遇到问题。 我已将 mail.mydomain.com 连接到 NAS 中配置的邮件服务器，主机名为 smtp.myquickid.synology.me。 我可以收发任意 domain.com 的邮件……

---

## [无法重建容器：“score”列中的空值违反了非空约束](https://meta.discourse.org/t/cant-rebuild-container-null-value-in-column-score-violates-not-null-constraint/112883)

<div class="topic-metadata">

**Author:** [@jonathon](https://meta.discourse.org/u/jonathon)\
**回覆:** 5\
**Last updated:** [2019年四月1日 15:56 UTC](https://meta.discourse.org/t/cant-rebuild-container-null-value-in-column-score-violates-not-null-constraint/112883 "2019-04-01T15:56:44Z")

</div>

运行 /var/discourse/launcher rebuild app 后，似乎数据库中有一个旧的“损坏”/失效条目： I, \[2019-03-29T11:29:05.642432 #14\] INFO -- : \> cd /var/www/discourse && su discourse -c 'bundle …

---

## [我的邮箱无法工作 \[SMTP 已设置\]](https://meta.discourse.org/t/my-email-is-not-working-smtp-set-up/112977)

<div class="topic-metadata">

**Author:** [@Jye\_R](https://meta.discourse.org/u/Jye_R)\
**回覆:** 4\
**Last updated:** [2019年三月30日 06:43 UTC](https://meta.discourse.org/t/my-email-is-not-working-smtp-set-up/112977 "2019-03-30T06:43:50Z")

</div>

我一直在尝试设置激活邮件，但无法正常工作。我使用的是 Outlook 搭配 GoDaddy。

---

## [如何在 AWS EC2 实例（Ubuntu Server LTS）上安装 Discourse？](https://meta.discourse.org/t/how-to-install-discourse-in-the-aws-ec2-instances-ubuntu-server-lts/112406)

<div class="topic-metadata">

**Author:** [@Lee533](https://meta.discourse.org/u/Lee533)\
**回覆:** 36\
**Last updated:** [2019年三月30日 04:23 UTC](https://meta.discourse.org/t/how-to-install-discourse-in-the-aws-ec2-instances-ubuntu-server-lts/112406 "2019-03-30T04:23:33Z")

</div>

我正在编辑一份关于在 AWS EC2 实例（Ubuntu Server LTS）上安装 Discourse 的中文（简体）指南。我也是 Rails、Linux Shell 和 Web 开发的新手。这是我已编辑的部分。 是否有……

---

## [Ngnix 在禁用 IPv6 的虚拟机上无法启动](https://meta.discourse.org/t/ngnix-fails-to-start-on-vm-with-ipv6-disabled/112918)

<div class="topic-metadata">

**Author:** [@chrisc](https://meta.discourse.org/u/chrisc)\
**回覆:** 14\
**Last updated:** [2019年三月29日 15:36 UTC](https://meta.discourse.org/t/ngnix-fails-to-start-on-vm-with-ipv6-disabled/112918 "2019-03-29T15:36:03Z")

</div>

我试图升级的 Discourse 服务器卡在重启中（由于不断重启，我似乎无法获得其 shell），这是我从 ./launcher logs app 获取的信息： \[2019 年 3 月 29 日 星期五 12:51:47 UTC\] …

---

## [NGINX 模块建议](https://meta.discourse.org/t/nginx-module-advice/112848)

<div class="topic-metadata">

**Author:** [@jose-zama](https://meta.discourse.org/u/jose-zama)\
**回覆:** 2\
**Last updated:** [2019年三月28日 20:01 UTC](https://meta.discourse.org/t/nginx-module-advice/112848 "2019-03-28T20:01:37Z")

</div>

我们需要在 Discourse 服务器上安装 Signal Sciences OS 代理和 Web 服务器模块。因此，我们的方案是在 Discourse 容器中同时安装代理和 nginx 模块。我们已发现 NG…

---

## [迁移到 S3 以解决 Digital Ocean Spaces 的问题](https://meta.discourse.org/t/migrate-to-s3-for-digital-ocean-spaces-woes/109662)

<div class="topic-metadata">

**Author:** [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**回覆:** 25\
**Last updated:** [2019年三月28日 04:23 UTC](https://meta.discourse.org/t/migrate-to-s3-for-digital-ocean-spaces-woes/109662 "2019-03-28T04:23:52Z")

</div>

继续讨论 \`rake uploads:migrate\_to\_s3\` 需要一些改进： 我仍然无法让 migrate\_to\_s3 与 Digital Ocean Spaces 一起工作。 root@shadrach-rbx8888:/var/www/discourse# rails c \[1\] pry(main) \> GlobalSet…

---

## [无法连接到 SMTP 邮件服务器](https://meta.discourse.org/t/failing-to-connect-to-smtp-mail-server/112737)

<div class="topic-metadata">

**Author:** [@Eisfunke](https://meta.discourse.org/u/Eisfunke)\
**回覆:** 2\
**Last updated:** [2019年三月27日 20:30 UTC](https://meta.discourse.org/t/failing-to-connect-to-smtp-mail-server/112737 "2019-03-27T20:30:42Z")

</div>

大家好， 我在配置 Discourse 的邮件服务器时遇到了问题。 我正在使用 OpenSMTPD 运行自己的 SMTP 服务器，它运行正常，我已成功将其用于 Gitea 和 Nextcloud。 但 Discourse 似乎不支…

---

## [HTTPS 配合 Let's Encrypt 在 VPN 后面使用？](https://meta.discourse.org/t/https-with-lets-encrypt-behind-a-vpn/112726)

<div class="topic-metadata">

**Author:** [@tbeaudry](https://meta.discourse.org/u/tbeaudry)\
**回覆:** 15\
**Last updated:** [2019年三月27日 18:44 UTC](https://meta.discourse.org/t/https-with-lets-encrypt-behind-a-vpn/112726 "2019-03-27T18:44:59Z")

</div>

大家好， 我的情况是这样的：我搭建了一个 Discourse 论坛，目前仅能通过大学的 VPN 私有访问。我想了解一下，使用 Let's Encrypt 配置 HTTPS 是否可行，或者我是否需要采用其他不同的方案？

---

## [Unable to get Redis out of read only mode post upgrade](https://meta.discourse.org/t/unable-to-get-redis-out-of-read-only-mode-post-upgrade/28471)

<div class="topic-metadata">

**Author:** [@stroupaloop](https://meta.discourse.org/u/stroupaloop)\
**回覆:** 12\
**Last updated:** [2019年三月27日 01:07 UTC](https://meta.discourse.org/t/unable-to-get-redis-out-of-read-only-mode-post-upgrade/28471 "2019-03-27T01:07:02Z")

</div>

Hey Discourse community! This may be a quick fix, but I couldn’t find anything that solved this problem. I recently updated my Discourse server (docker \> AWS setup \> EC2, postgres, Redis, SES) and have been stuck in rea…

---

## [How do I place a text file in the root directory of my Discourse website?](https://meta.discourse.org/t/how-do-i-place-a-text-file-in-the-root-directory-of-my-discourse-website/52709)

<div class="topic-metadata">

**Author:** [@Noahqw](https://meta.discourse.org/u/Noahqw)\
**回覆:** 1\
**Last updated:** [2016年十一月9日 16:25 UTC](https://meta.discourse.org/t/how-do-i-place-a-text-file-in-the-root-directory-of-my-discourse-website/52709 "2016-11-09T16:25:15Z")

</div>

I’m trying to verify ownership of my domain for MailJet so I can send emails through my domain. I need to place a text file in the root directory of my Discourse website. But which folder is that? I’ve installed it on Ub…

---

## [Discourse 能否与免费 Slack 集成？](https://meta.discourse.org/t/can-discourse-integrate-with-free-slack/112429)

<div class="topic-metadata">

**Author:** [@ArtAtomic](https://meta.discourse.org/u/ArtAtomic)\
**回覆:** 1\
**Last updated:** [2019年三月23日 23:44 UTC](https://meta.discourse.org/t/can-discourse-integrate-with-free-slack/112429 "2019-03-23T23:44:46Z")

</div>

我属于一个大型社区，我们正寻求为现有的免费 Slack 提供补充。 是否有可能与免费 Slack 集成，还是仅支持付费版本？ 我正在考虑 Discourse 与 Slack 的组合……

---

## [无需任何编程知识，能否安装和维护 Discourse？](https://meta.discourse.org/t/without-any-coding-knowledge-is-it-possible-to-install-and-maintain-discourse/112366)

<div class="topic-metadata">

**Author:** [@AvidLearner](https://meta.discourse.org/u/AvidLearner)\
**回覆:** 13\
**Last updated:** [2019年三月23日 06:10 UTC](https://meta.discourse.org/t/without-any-coding-knowledge-is-it-possible-to-install-and-maintain-discourse/112366 "2019-03-23T06:10:30Z")

</div>

目前我无法负担 Discourse 的托管费用，因此最初我想在其他地方进行安装。我没有什么编程技能，但可以按照说明操作。这听起来可行吗，还是我…

---

## [无法运行 /launcher 重建应用 \[已解决\]](https://meta.discourse.org/t/unable-to-run-launcher-rebuild-app-solved/112266)

<div class="topic-metadata">

**Author:** [@Cosmic](https://meta.discourse.org/u/Cosmic)\
**回覆:** 6\
**Last updated:** [2019年三月23日 05:12 UTC](https://meta.discourse.org/t/unable-to-run-launcher-rebuild-app-solved/112266 "2019-03-23T05:12:00Z")

</div>

您好， 在尝试升级到最新版本时，我收到了此信息。如有任何帮助，将不胜感激。我已尝试使用本地用户名通过 sudo 运行，以及以 root 身份运行，但均无济于事。 \` /var/www/discourse/vendor/bundle/r…\`

---

## [当 Sidekiq 队列超过 30 分钟时，用户会收到多封摘要邮件](https://meta.discourse.org/t/users-receive-multiple-summary-emails-when-sidekiq-queue-is-30-minutes/112291)

<div class="topic-metadata">

**Author:** [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**回覆:** 20\
**Last updated:** [2019年三月22日 23:09 UTC](https://meta.discourse.org/t/users-receive-multiple-summary-emails-when-sidekiq-queue-is-30-minutes/112291 "2019-03-22T23:09:36Z")

</div>

我拥有一个高流量系统，配备 24GB 内存、30GB 磁盘数据库，每月页面浏览量达 200 万。在网站迁移并更新为新图片格式的过程中曾遇到一些波折，但据我上次查看，系统似乎正在运行……

---

## [在 Discourse 中使用 Let's Encrypt](https://meta.discourse.org/t/using-letsencrypt-inside-discourse/112297)

<div class="topic-metadata">

**Author:** [@chagara](https://meta.discourse.org/u/chagara)\
**回覆:** 11\
**Last updated:** [2019年三月22日 17:04 UTC](https://meta.discourse.org/t/using-letsencrypt-inside-discourse/112297 "2019-03-22T17:04:49Z")

</div>

你好， 我已在 DigitalOcean 上托管 Discourse，并添加了所有 DNS 记录。网站地址为 https://forum.jlozadad.io。在应用了使用 Let's Encrypt 所需的更改并重新构建后，我在网站启动时遇到了以下错误……

---

## [无法在最新版本中加载“sass”文件](https://meta.discourse.org/t/cannot-load-such-file-sass-in-latest/112218)

<div class="topic-metadata">

**Author:** [@carlokok](https://meta.discourse.org/u/carlokok)\
**回覆:** 6\
**Last updated:** [2019年三月21日 23:49 UTC](https://meta.discourse.org/t/cannot-load-such-file-sass-in-latest/112218 "2019-03-21T23:49:16Z")

</div>

在重建最新版本时出现以下错误： LoadError: 无法加载文件 -- sass /var/www/discourse/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.2.1/lib/active\_support/dependencies.rb:291:in \`require' /var/www/discourse/…

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

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