# Self-hosting

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

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

**Page:** 80

---

## [表 incoming\_emails 占用数据库最大空间](https://meta.discourse.org/t/table-incoming-emails-consuming-most-space-in-database/100610)

<div class="topic-metadata">

**Author:** [@adopilot](https://meta.discourse.org/u/adopilot)\
**回覆:** 5\
**Last updated:** [2018年十月30日 00:14 UTC](https://meta.discourse.org/t/table-incoming-emails-consuming-most-space-in-database/100610 "2018-10-30T00:14:18Z")

</div>

我的 Discourse 磁盘空间不足。 在数据库中搜索占用空间最大的表时，我发现 incoming\_emails 表占用了 9 GB 的磁盘空间。下一个表是 posts，仅占用 1 GB。 我进行了更改…

---

## [端口帮助和其他问题](https://meta.discourse.org/t/port-help-and-another-questions/198626)

<div class="topic-metadata">

**Author:** [@Zurmely](https://meta.discourse.org/u/Zurmely)\
**回覆:** 1\
**Last updated:** [2021年七月30日 04:45 UTC](https://meta.discourse.org/t/port-help-and-another-questions/198626 "2021-07-30T04:45:50Z")

</div>

这是我第一次使用没有“视觉反馈”的 VPS，我必须承认，在某些方面确实很难。我遇到的第一个问题与端口有关，我正在使用 OVH，并且我尝试打开……

---

## [Discourse 镜像和安装大小。清理 /var/lib/docker/overlay2？](https://meta.discourse.org/t/discourse-image-and-installation-size-clean-var-lib-docker-overlay2/197957)

<div class="topic-metadata">

**Author:** [@m4rv1n](https://meta.discourse.org/u/m4rv1n)\
**回覆:** 10\
**Last updated:** [2021年七月28日 19:34 UTC](https://meta.discourse.org/t/discourse-image-and-installation-size-clean-var-lib-docker-overlay2/197957 "2021-07-28T19:34:34Z")

</div>

你好，我在一台新的专用机器上安装了 discourse，遵循了指南 https://github.com/discourse/discourse/blob/main/docs/INSTALL-cloud.md 。服务器有 15GB 的磁盘空间，而且如果安装不是……

---

## [Discourse Prometheus 插件在使用 bitnami/discourse:2.6.7 时抛出错误](https://meta.discourse.org/t/discourse-prometheus-plugin-throws-error-with-bitnami-discourse-2-6-7/197100)

<div class="topic-metadata">

**Author:** [@sonal\_jatav](https://meta.discourse.org/u/sonal_jatav)\
**回覆:** 1\
**Last updated:** [2021年七月27日 22:01 UTC](https://meta.discourse.org/t/discourse-prometheus-plugin-throws-error-with-bitnami-discourse-2-6-7/197100 "2021-07-27T22:01:19Z")

</div>

您好 我进行了彻底搜索，但没有找到解决此问题的方法。 我一直在使用 discourse-prometheus 插件和 bitnami/discourse 镜像（部署在 AKS 集群上）。 在最近的更新之后……

---

## [/shared folder not mounted in Docker container](https://meta.discourse.org/t/shared-folder-not-mounted-in-docker-container/30077)

<div class="topic-metadata">

**Author:** [@hongquan](https://meta.discourse.org/u/hongquan)\
**回覆:** 4\
**Last updated:** [2015年六月17日 01:59 UTC](https://meta.discourse.org/t/shared-folder-not-mounted-in-docker-container/30077 "2015-06-17T01:59:59Z")

</div>

Hi. I setup Discourse with Docker 1.6.2 (build 7c8fca2). It tried on my localhost first, then did in production server. On my localhost, from container I can see /shared folder, while in production server, I cannot find. …

---

## [DISCOURSE\_CDN\_URL 的帮助](https://meta.discourse.org/t/help-with-discourse-cdn-url/198209)

<div class="topic-metadata">

**Author:** [@davidkingham](https://meta.discourse.org/u/davidkingham)\
**回覆:** 1\
**Last updated:** [2021年七月26日 19:41 UTC](https://meta.discourse.org/t/help-with-discourse-cdn-url/198209 "2021-07-26T19:41:24Z")

</div>

我正在尝试修复我网站上的 s3/cdn 设置，但遇到了问题。简单回顾一下背景：我之前一直使用 Digital Ocean Spaces 和 bunny.net 作为 CDN，并且在网站设置中一切都已正确配置，……

---

## [DigitalOcean 基本安装失败，端口 443 不可访问](https://meta.discourse.org/t/basic-digital-ocean-install-fails-on-port-443-not-accessible/198044)

<div class="topic-metadata">

**Author:** [@Elio](https://meta.discourse.org/u/Elio)\
**回覆:** 5\
**Last updated:** [2021年七月26日 12:14 UTC](https://meta.discourse.org/t/basic-digital-ocean-install-fails-on-port-443-not-accessible/198044 "2021-07-26T12:14:30Z")

</div>

嘿，我正在尝试 Discourse/DigitalOcean 的基本指南：discourse/INSTALL-cloud.md at main · discourse/discourse · GitHub 我花了几个（10多个）小时在端口上调试，直到它能运行起来。然后才理解……

---

## [ARM 的更新？](https://meta.discourse.org/t/updates-for-arm/197433)

<div class="topic-metadata">

**Author:** [@Bobby365](https://meta.discourse.org/u/Bobby365)\
**回覆:** 1\
**Last updated:** [2021年七月24日 07:54 UTC](https://meta.discourse.org/t/updates-for-arm/197433 "2021-07-24T07:54:26Z")

</div>

您好，我想了解一下 ARM CPU 的兼容性未来。我正在使用 Oracle Cloud，并且希望能够托管 ARM 服务器类型的实例。

---

## [是否可以在 DISCOURSE\_HOSTNAME 旁边指定 DISCOURSE\_PORT？](https://meta.discourse.org/t/is-there-a-way-to-specify-discourse-port-next-to-discourse-hostname/197950)

<div class="topic-metadata">

**Author:** [@vsile](https://meta.discourse.org/u/vsile)\
**回覆:** 1\
**Last updated:** [2021年七月23日 13:30 UTC](https://meta.discourse.org/t/is-there-a-way-to-specify-discourse-port-next-to-discourse-hostname/197950 "2021-07-23T13:30:01Z")

</div>

目标 URL 是 https://discourse.example.com:9443。 我们使用另一台服务器上的反向代理 (nginx)，配置如下： Spoilerserver { listen 9443 ssl; listen \[::\]:9443 ssl; client\_max\_body\_size 500m; server\_name……

---

## [Discourse, Apache 和 Varnish Cache 的问题](https://meta.discourse.org/t/difficulty-with-discourse-apache-varnish-cache/197917)

<div class="topic-metadata">

**Author:** [@kianwalters05](https://meta.discourse.org/u/kianwalters05)\
**回覆:** 1\
**Last updated:** [2021年七月23日 12:59 UTC](https://meta.discourse.org/t/difficulty-with-discourse-apache-varnish-cache/197917 "2021-07-23T12:59:59Z")

</div>

你好！ 我正在为 discourse docker 使用反向代理，因为我的主系统上还有其他站点。我在 Apache 前端前面有一个 Varnish 缓存，以加快我的网站加载速度。有时（登录后）我会随机……

---

## [需要帮助：全新安装，仍加载旧论坛](https://meta.discourse.org/t/need-help-fresh-install-old-forum-still-gets-loaded/197877)

<div class="topic-metadata">

**Author:** [@Sean\_Hong](https://meta.discourse.org/u/Sean_Hong)\
**回覆:** 4\
**Last updated:** [2021年七月22日 21:53 UTC](https://meta.discourse.org/t/need-help-fresh-install-old-forum-still-gets-loaded/197877 "2021-07-22T21:53:32Z")

</div>

我的首次安装非常顺利。一切都进行得很顺利，一切都已设置好并且完美运行。提出了一些请求，我不得不创建一个新的 droplet 并销毁旧的。 使用新的 droplet 和……

---

## [使用已安装的 Apache2 安装 Discourse](https://meta.discourse.org/t/installing-discourse-with-apache2-installed/197771)

<div class="topic-metadata">

**Author:** [@kianwalters05](https://meta.discourse.org/u/kianwalters05)\
**回覆:** 17\
**Last updated:** [2021年七月21日 20:16 UTC](https://meta.discourse.org/t/installing-discourse-with-apache2-installed/197771 "2021-07-21T20:16:41Z")

</div>

你好！ 我正在运行一台安装了 Apache 的 Ubuntu 18.04 服务器。我想在另一个端口上安装 Discourse，然后通过 Apache 使用反向代理，使其可以通过一个 URL 访问。我尝试创建一个 app.yml & chang…

---

## [Err\_connection\_refused](https://meta.discourse.org/t/err-connection-refused/197812)

<div class="topic-metadata">

**Author:** [@kianwalters05](https://meta.discourse.org/u/kianwalters05)\
**回覆:** 3\
**Last updated:** [2021年七月22日 16:10 UTC](https://meta.discourse.org/t/err-connection-refused/197812 "2021-07-22T16:10:53Z")

</div>

你好！ 我在 app.yml 中更改设置后安装了 discourse 并重建了它。当我尝试通过 IP:Port 加载站点进行设置时，我收到‘ERR\_CONNECTION\_REFUSED’。Docker 容器似乎正在运行……

---

## [使用 pg\_dump 恢复 Discourse](https://meta.discourse.org/t/discourse-restore-with-pg-dump/100157)

<div class="topic-metadata">

**Author:** [@Lakshmi](https://meta.discourse.org/u/Lakshmi)\
**回覆:** 2\
**Last updated:** [2018年十月22日 12:15 UTC](https://meta.discourse.org/t/discourse-restore-with-pg-dump/100157 "2018-10-22T12:15:33Z")

</div>

嗨， 我使用的是 Docker 自带的默认 PostgreSQL。我通常通过以下方式连接到数据库： sudo ./launcher enter app su -c 'psql discourse' postgres 由于默认备份存储在 /var/discourse/shared/standalo…

---

## [LetsEncrypt何时应续订？](https://meta.discourse.org/t/when-should-letsencrypt-renew/197588)

<div class="topic-metadata">

**Author:** [@davidkingham](https://meta.discourse.org/u/davidkingham)\
**回覆:** 6\
**Last updated:** [2021年七月19日 19:41 UTC](https://meta.discourse.org/t/when-should-letsencrypt-renew/197588 "2021-07-19T19:41:43Z")

</div>

我的证书将在三天后到期，它现在应该自动续订了吗？我没有多站点、代理，也没有端口被阻止。这是相当标准的安装。我应该照此操作，还是这是预期的……

---

## [Discourse 安装版本](https://meta.discourse.org/t/discourse-install-version/197540)

<div class="topic-metadata">

**Author:** [@youmustbekiddingme](https://meta.discourse.org/u/youmustbekiddingme)\
**回覆:** 1\
**Last updated:** [2021年七月19日 04:09 UTC](https://meta.discourse.org/t/discourse-install-version/197540 "2021-07-19T04:09:48Z")

</div>

我按照官网的流程下载了 discourse，发现下载的是 beta 版本。请问有 release 版本可以选吗？

---

## [子文件夹安装时加载源映射警告失败](https://meta.discourse.org/t/failed-to-load-source-map-warnings-on-subfolder-install/197139)

<div class="topic-metadata">

**Author:** [@MihaVuk](https://meta.discourse.org/u/MihaVuk)\
**回覆:** 0\
**Last updated:** [2021年七月14日 17:21 UTC](https://meta.discourse.org/t/failed-to-load-source-map-warnings-on-subfolder-install/197139 "2021-07-14T17:21:19Z")

</div>

我已经成功地将 Discourse 论坛安装到了子文件夹（\\forum）中，并且一切运行正常，除了在 Edge 开发者控制台中出现大量“DevTools failed to load source map:”警告。 当我进行调查时……

---

## [关于A的安装文档](https://meta.discourse.org/t/about-as-installation-document/196685)

<div class="topic-metadata">

**Author:** [@hon](https://meta.discourse.org/u/hon)\
**回覆:** 1\
**Last updated:** [2021年七月10日 12:34 UTC](https://meta.discourse.org/t/about-as-installation-document/196685 "2021-07-10T12:34:37Z")

</div>

话语的完整文档在哪里？我一直找不到。我经常在网上看到一些配置，但一直没能在官方 git 仓库的安装说明中看到……

---

## [更新/重建导致CPU使用率飙升](https://meta.discourse.org/t/cpu-spikes-due-to-updates-rebuilds/195523)

<div class="topic-metadata">

**Author:** [@Jim\_Starkweather](https://meta.discourse.org/u/Jim_Starkweather)\
**回覆:** 8\
**Last updated:** [2021年七月7日 16:40 UTC](https://meta.discourse.org/t/cpu-spikes-due-to-updates-rebuilds/195523 "2021-07-07T16:40:02Z")

</div>

我刚刚在重启我的 Amazon Lightsail 实例时遇到了最奇怪的经历。 执行了重启… 等待重启。 在某些（我认为是未缓存的）页面上看到了“502 网关错误 - Nginx”错误消息屏幕。等待…

---

## [升级 2.7.0.beta8 -	u003e 2.8.0.beta2 失败，重建失败](https://meta.discourse.org/t/upgrade-2-7-0-beta8-2-8-0-beta2-failed-rebuild-failed/194636)

<div class="topic-metadata">

**Author:** [@TallTrees](https://meta.discourse.org/u/TallTrees)\
**回覆:** 5\
**Last updated:** [2021年七月7日 09:07 UTC](https://meta.discourse.org/t/upgrade-2-7-0-beta8-2-8-0-beta2-failed-rebuild-failed/194636 "2021-07-07T09:07:31Z")

</div>

早上好！ 我尝试通过管理控制台升级我的网站，但失败了，出现类似以下的错误： I, \[2021-06-22T05:54:52.584458 #1776\] INFO -- : Refreshing Gem list \*\* 插件失败 \*\* 您无法构建 Discour…

---

## [通过 Docker 安装 Discourse 失败](https://meta.discourse.org/t/fail-to-install-discourse-via-docker/196259)

<div class="topic-metadata">

**Author:** [@chiehpower](https://meta.discourse.org/u/chiehpower)\
**回覆:** 3\
**Last updated:** [2021年七月7日 08:49 UTC](https://meta.discourse.org/t/fail-to-install-discourse-via-docker/196259 "2021-07-07T08:49:01Z")

</div>

我填写了 app.yml 文件，并使用此命令重建映像。 sudo ./launcher rebuild app 但是，我遇到了这个问题，不知道该如何处理…… I, \[2021-07-07T01:28:34.484614 #1\] INFO -- ……

---

## [502 Bad Gateway 和 Discourse 版本未找到](https://meta.discourse.org/t/502-bad-gateway-and-discourse-version-not-found/196134)

<div class="topic-metadata">

**Author:** [@Pigeon](https://meta.discourse.org/u/Pigeon)\
**回覆:** 5\
**Last updated:** [2021年七月6日 14:40 UTC](https://meta.discourse.org/t/502-bad-gateway-and-discourse-version-not-found/196134 "2021-07-06T14:40:32Z")

</div>

我已按照说明在 Centos 7 上安装 Discourse 我已正确设置电子邮件并收到测试电子邮件。但我总是收到 502 网关错误。 我之前遇到了 ssl\_stapling 问题，通过包含...解决了该问题

---

## [Https证书有效期](https://meta.discourse.org/t/https-certificates-valid-period/196124)

<div class="topic-metadata">

**Author:** [@youmustbekiddingme](https://meta.discourse.org/u/youmustbekiddingme)\
**回覆:** 4\
**Last updated:** [2021年七月6日 08:29 UTC](https://meta.discourse.org/t/https-certificates-valid-period/196124 "2021-07-06T08:29:09Z")

</div>

https证书的有效期是多久？

---

## [550 Bad HELO - 主机冒充主机名](https://meta.discourse.org/t/550-bad-helo-host-impersonating-hostname/195811)

<div class="topic-metadata">

**Author:** [@Codes09](https://meta.discourse.org/u/Codes09)\
**回覆:** 2\
**Last updated:** [2021年七月3日 16:06 UTC](https://meta.discourse.org/t/550-bad-helo-host-impersonating-hostname/195811 "2021-07-03T16:06:40Z")

</div>

设置 Discourse 后，我遇到了一个 Bad HELO 错误。 我进行了一些研究，发现有时如果反向 DNS 与主机名不匹配，可能会出现此问题。 在我的例子中，我的配置中有邮件服务器……

---

## [计算机的443端口似乎无法访问](https://meta.discourse.org/t/port-443-of-computer-does-not-appear-to-be-accessible-using/160267)

<div class="topic-metadata">

**Author:** [@MostafaXdev](https://meta.discourse.org/u/MostafaXdev)\
**回覆:** 26\
**Last updated:** [2021年七月2日 14:51 UTC](https://meta.discourse.org/t/port-443-of-computer-does-not-appear-to-be-accessible-using/160267 "2021-07-02T14:51:47Z")

</div>

我每次运行 \`./discourse-setup\` 时都会收到此错误，有什么解决方案吗？（我已添加一个指向我的 VM IP 的 DNS A 记录）。 正在检查您的域名 . . . 警告：计算机的 443 端口似乎无法访问……

---

## [无法登录](https://meta.discourse.org/t/unable-to-login/195054)

<div class="topic-metadata">

**Author:** [@Myalden](https://meta.discourse.org/u/Myalden)\
**回覆:** 6\
**Last updated:** [2021年七月2日 10:32 UTC](https://meta.discourse.org/t/unable-to-login/195054 "2021-07-02T10:32:29Z")

</div>

您好，我刚在我的新服务器上安装了 Discourse 2.8 beta。我已经安装了 SSL 证书，SMTP 工作正常。 今天尝试登录时，我收到了“用户名、电子邮件或密码不正确”的消息…… 然后我点击了忘记密码……

---

## [升级到 2.8.0 Beta 2 时出错，因为插件已弃用](https://meta.discourse.org/t/error-upgrading-to-2-8-0-beta-2-due-to-deprecated-plugin/195701)

<div class="topic-metadata">

**Author:** [@agf1997](https://meta.discourse.org/u/agf1997)\
**回覆:** 2\
**Last updated:** [2021年七月1日 21:43 UTC](https://meta.discourse.org/t/error-upgrading-to-2-8-0-beta-2-due-to-deprecated-plugin/195701 "2021-07-01T21:43:13Z")

</div>

失败 -------------------- Pups::ExecError: cd /var/www/discourse && su discourse -c

---

## [Discourse 安装在数据库迁移时失败](https://meta.discourse.org/t/discourse-installation-fails-on-database-migration/194867)

<div class="topic-metadata">

**Author:** [@mihco](https://meta.discourse.org/u/mihco)\
**回覆:** 5\
**Last updated:** [2021年七月1日 15:24 UTC](https://meta.discourse.org/t/discourse-installation-fails-on-database-migration/194867 "2021-07-01T15:24:10Z")

</div>

您好，我正在尝试在我自己的电脑上安装 Discourse 用于开发，但是运行 bundle exec rake db:migrate 时出现了这个错误： ArgumentError: 参数数量错误（给定 1，预期 0；需要关键字参数……

---

## [由于 discourse-alt-logo 主题组件，引导失败](https://meta.discourse.org/t/failed-to-bootstrap-due-to-discourse-alt-logo-theme-component/195537)

<div class="topic-metadata">

**Author:** [@davidkingham](https://meta.discourse.org/u/davidkingham)\
**回覆:** 7\
**Last updated:** [2021年六月30日 22:15 UTC](https://meta.discourse.org/t/failed-to-bootstrap-due-to-discourse-alt-logo-theme-component/195537 "2021-06-30T22:15:42Z")

</div>

今天早上我尝试通过UI进行升级，但失败了。然后我进行了重建，但同样失败了。我禁用了所有插件，但仍然失败。 查看日志，似乎数据库可能已损坏？还有其他建议吗？ 我，\[20...

---

## [在 Cloudflare 中启用全站加速](https://meta.discourse.org/t/enable-full-site-accleration-in-cloudflare/195369)

<div class="topic-metadata">

**Author:** [@Pravi](https://meta.discourse.org/u/Pravi)\
**回覆:** 0\
**Last updated:** [2021年六月29日 14:13 UTC](https://meta.discourse.org/t/enable-full-site-accleration-in-cloudflare/195369 "2021-06-29T14:13:21Z")

</div>

为了在 Cloudflare 上启用全站加速， 需要创建一个名为 origin（或任何名称）的 A 记录，以便 origin.mydomain.com 由 Cloudflare 代理，并且 mydomain.com 解析到我的 Linode IP。 force…

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

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