# Self-hosting

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

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

**Page:** 59

---

## [2.9.0.beta11更新后聊天消失](https://meta.discourse.org/t/chat-gone-after-2-9-0-beta11-update/244007)

<div class="topic-metadata">

**Author:** [@cbrake](https://meta.discourse.org/u/cbrake)\
**回覆:** 2\
**Last updated:** [2022年十一月2日 14:43 UTC](https://meta.discourse.org/t/chat-gone-after-2-9-0-beta11-update/244007 "2022-11-02T14:43:08Z")

</div>

更新到 2.9.0.beta11 后，聊天图标消失了，并且在管理员-\>插件中不再列出： 我仍然在 containers/app.yml 中有以下内容 ## 插件放在这里 ## 参见 https://meta.discourse.org/t/19157 f……

---

## [如何知道postgres\_data和uploads中的内容？](https://meta.discourse.org/t/how-to-know-whats-in-postgres-data-and-uploads/243307)

<div class="topic-metadata">

**Author:** [@danielabc](https://meta.discourse.org/u/danielabc)\
**回覆:** 4\
**Last updated:** [2022年十一月1日 11:44 UTC](https://meta.discourse.org/t/how-to-know-whats-in-postgres-data-and-uploads/243307 "2022-11-01T11:44:26Z")

</div>

以及如何删除它们？

---

## [Puma ↔ Unicorn 切换](https://meta.discourse.org/t/switching-puma-unicorn/243363)

<div class="topic-metadata">

**Author:** [@merefield](https://meta.discourse.org/u/merefield)\
**回覆:** 4\
**Last updated:** [2022年十月31日 11:58 UTC](https://meta.discourse.org/t/switching-puma-unicorn/243363 "2022-10-31T11:58:12Z")

</div>

我正在调查一个问题，我怀疑这可能与所使用的特定类型的 Web 服务器有关。 Discourse 支持 Puma 和 Unicorn Web 服务器。 什么是最小配置以及……

---

## [在网站上加载新组件时，网站已关闭](https://meta.discourse.org/t/while-loading-a-new-component-on-the-site-the-site-is-down/242849)

<div class="topic-metadata">

**Author:** [@Aizada\_M](https://meta.discourse.org/u/Aizada_M)\
**回覆:** 17\
**Last updated:** [2022年十月30日 12:17 UTC](https://meta.discourse.org/t/while-loading-a-new-component-on-the-site-the-site-is-down/242849 "2022-10-30T12:17:17Z")

</div>

您好。在网站上加载新组件时，网站崩溃了。 我不是专家，也不明白为什么。 也许是因为组件冲突。该网站已超过5个月未更新……

---

## [尝试更换邮件提供商，弄乱了我的discourse](https://meta.discourse.org/t/attempted-to-switch-mail-provider-messed-up-my-discourse/243309)

<div class="topic-metadata">

**Author:** [@tatsu1](https://meta.discourse.org/u/tatsu1)\
**回覆:** 6\
**Last updated:** [2022年十月30日 10:49 UTC](https://meta.discourse.org/t/attempted-to-switch-mail-provider-messed-up-my-discourse/243309 "2022-10-30T10:49:30Z")

</div>

大家好 我有一个 Discourse 论坛（我放在我的一个微型服务器上的个人 Docker 安装包），已经运行大约一年了。 两天前，我将网址从 forum.sanctuary-rts.com 更改为 forum.sanctuaryshatteredsun.com a…

---

## [从 2.4 升级到 2.9。需要一些关于运行最终命令和重启顺序的帮助](https://meta.discourse.org/t/upgrading-from-2-4-to-2-9-need-slight-assistance-on-what-order-to-run-the-final-commands-reboot-in/243255)

<div class="topic-metadata">

**Author:** [@AakLak](https://meta.discourse.org/u/AakLak)\
**回覆:** 3\
**Last updated:** [2022年十月29日 12:33 UTC](https://meta.discourse.org/t/upgrading-from-2-4-to-2-9-need-slight-assistance-on-what-order-to-run-the-final-commands-reboot-in/243255 "2022-10-29T12:33:43Z")

</div>

几乎已完成从 2.4 升级到 2.9+。 首先我运行了： cd /var/discourse git pull ./launcher rebuild app 我现在看到这个，想知道运行这三个命令的顺序，以及何时重启服务器。 …

---

## [Ember CLI 正在惹恼 nginx](https://meta.discourse.org/t/ember-cli-is-upsetting-nginx/242585)

<div class="topic-metadata">

**Author:** [@merefield](https://meta.discourse.org/u/merefield)\
**回覆:** 5\
**Last updated:** [2022年十月28日 10:31 UTC](https://meta.discourse.org/t/ember-cli-is-upsetting-nginx/242585 "2022-10-28T10:31:28Z")

</div>

所以我正在进行一个不受支持的 Docker 安装。 这意味着在另一个端口上运行 Ember CLI 容器，并使用共享卷，并如预期那样代理到 Rails 服务器。 不幸的是，对于所有 .css 资源，…

---

## [“定义缺失……”](https://meta.discourse.org/t/the-definition-is-missing/230441)

<div class="topic-metadata">

**Author:** [@Jonathan5](https://meta.discourse.org/u/Jonathan5)\
**回覆:** 1\
**Last updated:** [2022年十月27日 18:54 UTC](https://meta.discourse.org/t/the-definition-is-missing/230441 "2022-10-27T18:54:32Z")

</div>

我不理解以“定义缺失…”开头的这行字——有什么可担心的吗？谢谢。 I, \[2022-06-19T22:15:02.569072 #1\] INFO -- : \> cd /var/www/discourse && su discourse -c 'bundle install --deployment…

---

## [“帖子可能无法正确显示，因为” 在新的 discourse 安装中看到此错误](https://meta.discourse.org/t/posts-may-not-display-correctly-because-seeing-this-error-in-new-discourse-installation/243012)

<div class="topic-metadata">

**Author:** [@Dixravi](https://meta.discourse.org/u/Dixravi)\
**回覆:** 2\
**Last updated:** [2022年十月26日 23:54 UTC](https://meta.discourse.org/t/posts-may-not-display-correctly-because-seeing-this-error-in-new-discourse-installation/243012 "2022-10-26T23:54:05Z")

</div>

我在DigitalOcean服务器上安装了一个全新的Discourse，但在管理员仪表板上遇到了一个奇怪的红屏错误。请查看截图：Lightshot截图 我以前从未遇到过这类问题……

---

## [安装时出错](https://meta.discourse.org/t/error-while-installing/241972)

<div class="topic-metadata">

**Author:** [@spectre](https://meta.discourse.org/u/spectre)\
**回覆:** 16\
**Last updated:** [2022年十月25日 16:24 UTC](https://meta.discourse.org/t/error-while-installing/241972 "2022-10-25T16:24:12Z")

</div>

嘿，各位， 也许这个问题已经被回答和处理过了，但我在这里找不到。因此，我发布了我自己的问题，希望能有人详细说明一下情况： (未知)：在解析块映射时未找到预期的键……

---

## [Zoho Mail 问题](https://meta.discourse.org/t/zoho-mail-problems/242767)

<div class="topic-metadata">

**Author:** [@Remixiak](https://meta.discourse.org/u/Remixiak)\
**回覆:** 4\
**Last updated:** [2022年十月24日 18:39 UTC](https://meta.discourse.org/t/zoho-mail-problems/242767 "2022-10-24T18:39:54Z")

</div>

我已经安装了 discourse 并设置了 zoho 邮件。 它连接到 SMTP 服务器但没有发送！ 我收到邮件说它访问了 zoho SMTP 服务器。

---

## [我的论坛在重建启动器应用程序时崩溃](https://meta.discourse.org/t/my-forum-goes-down-when-i-do-launcher-rebuild-app/242671)

<div class="topic-metadata">

**Author:** [@Zee](https://meta.discourse.org/u/Zee)\
**回覆:** 15\
**Last updated:** [2022年十月23日 08:36 UTC](https://meta.discourse.org/t/my-forum-goes-down-when-i-do-launcher-rebuild-app/242671 "2022-10-23T08:36:31Z")

</div>

你好， 每次我运行./launcher rebuild app时，我的论坛都会崩溃。 我附上了它给出的错误的截图。截图。

---

## [引导 2 失败](https://meta.discourse.org/t/failed-to-bootstrap-2/242544)

<div class="topic-metadata">

**Author:** [@spectre](https://meta.discourse.org/u/spectre)\
**回覆:** 8\
**Last updated:** [2022年十月22日 03:07 UTC](https://meta.discourse.org/t/failed-to-bootstrap-2/242544 "2022-10-22T03:07:34Z")

</div>

失败 -------------------- Pups::ExecError: if \[ -z "$LETSENCRYPT\_ACCOUNT\_EMAIL" \]; then echo "需要LETSENCRYPT\_ACCOUNT\_EMAIL环境变量但未设置。"; exit 1; fi 失败，返回码为 #\<Process::Status: …

---

## [Discourse 会话 Cookie（400 请求头或 Cookie 过大）](https://meta.discourse.org/t/discourse-session-cookies-400-request-header-or-cookie-too-large/137245)

<div class="topic-metadata">

**Author:** [@maltfield](https://meta.discourse.org/u/maltfield)\
**回覆:** 9\
**Last updated:** [2022年十月20日 23:14 UTC](https://meta.discourse.org/t/discourse-session-cookies-400-request-header-or-cookie-too-large/137245 "2022-10-20T23:14:15Z")

</div>

为什么 Discourse 的 Cookie 这么大？有原因吗？有没有办法减小它们的大小？ 我正在 Discourse 管理后台查看，突然从 /si… 收到了 400 错误请求。

---

## [哪个命令/进程构建了包含的资源？](https://meta.discourse.org/t/what-command-process-builds-the-included-assets/242335)

<div class="topic-metadata">

**Author:** [@merefield](https://meta.discourse.org/u/merefield)\
**回覆:** 7\
**Last updated:** [2022年十月19日 21:18 UTC](https://meta.discourse.org/t/what-command-process-builds-the-included-assets/242335 "2022-10-19T21:18:55Z")

</div>

在构建过程中，什么进程会创建样式表资源，例如 /stylesheets/color\_definitions\_dark\_1\_1\_603243e2b6c0b7xydx234the00538538bd705.css？ 我假设这是打包过程？ 如果……可能会出什么问题？

---

## [Docker子文件夹安装因Ember-CLI代理错误无法工作？](https://meta.discourse.org/t/docker-subfolder-install-not-working-due-to-ember-cli-proxy-error/242217)

<div class="topic-metadata">

**Author:** [@merefield](https://meta.discourse.org/u/merefield)\
**回覆:** 6\
**Last updated:** [2022年十月18日 21:42 UTC](https://meta.discourse.org/t/docker-subfolder-install-not-working-due-to-ember-cli-proxy-error/242217 "2022-10-18T21:42:49Z")

</div>

（我已将其标记为 unsupported-install，但无论如何都希望得到专家的意见 :slight\_smile:） 各位，我正在尝试通过 Docker Compose 在一个相对简单(?)的多 Docker 容器设置中运行一个基本的 Discourse 镜像。 我这里……

---

## [又一个 discourse 谜团](https://meta.discourse.org/t/another-discourse-mystery/241764)

<div class="topic-metadata">

**Author:** [@fuse](https://meta.discourse.org/u/fuse)\
**回覆:** 12\
**Last updated:** [2022年十月16日 20:36 UTC](https://meta.discourse.org/t/another-discourse-mystery/241764 "2022-10-16T20:36:10Z")

</div>

我在美国东部时间晚上9:09收到一个AWS CloudWatch警报，我的朋友们也给我发短信说“嘿，Discourse是不是挂了？”我无法SSH登录AWS Lightsail实例，并且所有指标都卡住/未报告。最终我放弃了……

---

## [升级失败！](https://meta.discourse.org/t/upgrade-failed/242000)

<div class="topic-metadata">

**Author:** [@justin\_gordon](https://meta.discourse.org/u/justin_gordon)\
**回覆:** 4\
**Last updated:** [2022年十月16日 12:53 UTC](https://meta.discourse.org/t/upgrade-failed/242000 "2022-10-16T12:53:23Z")

</div>

https://forum.shakacode.com/ 宕机了！它可是编程社区的资源！ 也许只需要升级 Bundler？ 也许这个错误指明了解决方案。 或者我不应该拉取最新的提交？…

---

## [还原失败 - 您应该先迁移吗？](https://meta.discourse.org/t/failed-restore-you-should-migrate-first/241971)

<div class="topic-metadata">

**Author:** [@frold](https://meta.discourse.org/u/frold)\
**回覆:** 7\
**Last updated:** [2022年十月15日 07:14 UTC](https://meta.discourse.org/t/failed-restore-you-should-migrate-first/241971 "2022-10-15T07:14:19Z")

</div>

我正试图从一个服务器迁移到新服务器。 服务器运行的是相同版本的 Discourse： 我收到了这个错误 \> \[2022-10-15 06:12:50\] \[STARTED\] \> \[2022-10-15 06:12:50\] 'frold' has started the restore! \> \[2022-10-1...

---

## [在 Ubuntu 20.04 或 22.04 上安装 Discourse？](https://meta.discourse.org/t/install-discourse-on-ubuntu-20-04-or-22-04/241912)

<div class="topic-metadata">

**Author:** [@frold](https://meta.discourse.org/u/frold)\
**回覆:** 2\
**Last updated:** [2022年十月14日 20:49 UTC](https://meta.discourse.org/t/install-discourse-on-ubuntu-20-04-or-22-04/241912 "2022-10-14T20:49:32Z")

</div>

Digital Ocean有一个安装了Discourse的Ubuntu 20.04的液滴，但是否最好在Ubuntu 22.04上进行全新安装？ 我必须在迁移域名的同时升级我的服务器。所以有一个窗口期，我可以……

---

## [升级失败，“引导失败”，错误 137](https://meta.discourse.org/t/upgrade-failed-failed-to-bootstrap-error-137/241717)

<div class="topic-metadata">

**Author:** [@kiz](https://meta.discourse.org/u/kiz)\
**回覆:** 5\
**Last updated:** [2022年十月12日 23:54 UTC](https://meta.discourse.org/t/upgrade-failed-failed-to-bootstrap-error-137/241717 "2022-10-12T23:54:44Z")

</div>

我定期升级（大约每个月一次），并且没有遇到过像这样阻止构建的问题。我的服务器目前无法访问。 我认为我的安装相当标准。有充足的可用磁盘空间。 dis…

---

## [在帖子中无法使用URL端口号嵌入媒体](https://meta.discourse.org/t/cannot-use-port-number-in-url-to-embed-media-in-post/241742)

<div class="topic-metadata">

**Author:** [@John\_Walker](https://meta.discourse.org/u/John_Walker)\
**回覆:** 0\
**Last updated:** [2022年十月12日 22:06 UTC](https://meta.discourse.org/t/cannot-use-port-number-in-url-to-embed-media-in-post/241742 "2022-10-12T22:06:47Z")

</div>

为了允许我的用户托管他们嵌入到 Discourse 帖子中的视频、音频文件等内容，我设置了一个 Apache 服务器，与运行 Discourse 的 Nginx 并行运行。Apache 服务器运行在 8008 端口，用于 http…

---

## [我的网站有多少GB？](https://meta.discourse.org/t/how-do-i-know-how-many-gb-my-site-is/241680)

<div class="topic-metadata">

**Author:** [@danielabc](https://meta.discourse.org/u/danielabc)\
**回覆:** 9\
**Last updated:** [2022年十月12日 14:06 UTC](https://meta.discourse.org/t/how-do-i-know-how-many-gb-my-site-is/241680 "2022-10-12T14:06:59Z")

</div>

我最近的服务器遇到了大麻烦！因为我的网站开始占用大量 GB 空间，我不得不购买更多的服务器 GB！ 但问题是，GB 内容越来越多，我该如何知道……

---

## [升级出现问题 \[已弃用的 Guest Gate 插件\]](https://meta.discourse.org/t/upgrade-gone-sideways-deprecated-guest-gate-plugin/241692)

<div class="topic-metadata">

**Author:** [@dylanb](https://meta.discourse.org/u/dylanb)\
**回覆:** 4\
**Last updated:** [2022年十月12日 13:32 UTC](https://meta.discourse.org/t/upgrade-gone-sideways-deprecated-guest-gate-plugin/241692 "2022-10-12T13:32:54Z")

</div>

我有一段时间没有升级我的 Discourse 了，但终于完成了。我尝试从 Web 应用程序升级，但它出错了，然后我进入服务器尝试重建容器，遇到了几个空间问题。N 展开…

---

## [未安装子域时无法正常工作](https://meta.discourse.org/t/installation-without-subdomain-not-working/241399)

<div class="topic-metadata">

**Author:** [@rahim123](https://meta.discourse.org/u/rahim123)\
**回覆:** 20\
**Last updated:** [2022年十月12日 12:28 UTC](https://meta.discourse.org/t/installation-without-subdomain-not-working/241399 "2022-10-12T12:28:47Z")

</div>

您好，我正在尝试在一个测试环境的全新 Ubuntu 20.04 虚拟机上安装 Discourse（我也尝试了 CentOS Stream 9、Ubuntu 22.04 和 openSUSE MicroOS）。我对 Discourse 这个项目从早期就开始有一些经验，…

---

## [Nginx.http.sock 从未创建](https://meta.discourse.org/t/nginx-http-sock-never-created/241657)

<div class="topic-metadata">

**Author:** [@nejikiri](https://meta.discourse.org/u/nejikiri)\
**回覆:** 2\
**Last updated:** [2022年十月12日 04:46 UTC](https://meta.discourse.org/t/nginx-http-sock-never-created/241657 "2022-10-12T04:46:46Z")

</div>

我已成功安装 Discourse，但在安装后发现从未创建 nginx.http.sock，并且我在 app.yml 中添加了 web.socketed 模板。我已尝试多次重建，但它仍然没有创建……

---

## [插件导致重建期间出错](https://meta.discourse.org/t/plugin-causing-errors-during-rebuild/241110)

<div class="topic-metadata">

**Author:** [@Jaap-Jan\_Swijnenburg](https://meta.discourse.org/u/Jaap-Jan_Swijnenburg)\
**回覆:** 20\
**Last updated:** [2022年十月11日 07:26 UTC](https://meta.discourse.org/t/plugin-causing-errors-during-rebuild/241110 "2022-10-11T07:26:12Z")

</div>

今天我尝试升级我的 Discourse 安装，从 2.9.0.beta9 到 2.9.0.beta10。但这次出了大问题。 我的第一次尝试是在控制台上 cd /var/discourse sudo git pull sudo ./launcher rebuild app 这……

---

## [设置 Strict-Transport-Security header](https://meta.discourse.org/t/set-strict-transport-security-header/241114)

<div class="topic-metadata">

**Author:** [@OrkoGrayskull](https://meta.discourse.org/u/OrkoGrayskull)\
**回覆:** 2\
**Last updated:** [2022年十月10日 10:22 UTC](https://meta.discourse.org/t/set-strict-transport-security-header/241114 "2022-10-10T10:22:03Z")

</div>

你好， 我想修改 Strict-Transport-Security 标头。 我在我的 app.yml 中使用了以下代码： run: # nginx 修改 - replace: filename: "/etc/nginx/conf.d/discourse.conf" from: …

---

## [Linode 网站因域名注册过期出现问题](https://meta.discourse.org/t/issues-with-site-on-linode-because-domain-s-registration-had-expired/241379)

<div class="topic-metadata">

**Author:** [@JayCee](https://meta.discourse.org/u/JayCee)\
**回覆:** 3\
**Last updated:** [2022年十月9日 20:33 UTC](https://meta.discourse.org/t/issues-with-site-on-linode-because-domain-s-registration-had-expired/241379 "2022-10-09T20:33:32Z")

</div>

嗯，我们目前正在使用 Linode，并且遇到了各种各样的问题。我们的网站自上周三以来一直离线。我正准备就此开始一个新话题，但看到了你的帖子，所以我想就加到这个帖子里……

---

## [连接超时](https://meta.discourse.org/t/connection-is-timing-out/241361)

<div class="topic-metadata">

**Author:** [@darkpixlz](https://meta.discourse.org/u/darkpixlz)\
**回覆:** 12\
**Last updated:** [2022年十月9日 11:18 UTC](https://meta.discourse.org/t/connection-is-timing-out/241361 "2022-10-09T11:18:41Z")

</div>

你好， 当我尝试在AWS上创建实例并正确连接所有内容时，我的实例超时了，不允许我连接到它。 网站是https://test.darkpixlz.tk，服务器声称它正在运行……

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

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