# Self-hosting

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

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

**Page:** 83

---

## [Docker 更新之后 putty](https://meta.discourse.org/t/docker-update-then-putty/188629)

<div class="topic-metadata">

**Author:** [@anon48433008](https://meta.discourse.org/u/anon48433008)\
**回覆:** 5\
**Last updated:** [2021年五月5日 09:28 UTC](https://meta.discourse.org/t/docker-update-then-putty/188629 "2021-05-05T09:28:21Z")

</div>

我会跟进更新，今天我做了docker然后去做了其他的，我遇到了这个 这对我是新的， putty一切都很好，但想发帖问一下，没关系吧？

---

## [从主机Bash执行rails命令](https://meta.discourse.org/t/executing-rails-commands-from-host-bash/189126)

<div class="topic-metadata">

**Author:** [@sven2](https://meta.discourse.org/u/sven2)\
**回覆:** 4\
**Last updated:** [2021年五月4日 15:40 UTC](https://meta.discourse.org/t/executing-rails-commands-from-host-bash/189126 "2021-05-04T15:40:01Z")

</div>

大家好， 我想从主机 Bash 执行自动化的用户清理任务。手动地，我运行 /var/discourse/launcher enter app rails c UserDestroyer.new(Discourse.system\_user).destroy(User.find\_by\_username\_or\_email("use…

---

## [错误：您运行的是旧版本的 Discourse 镜像](https://meta.discourse.org/t/error-you-are-running-an-old-version-of-the-discourse-image/188860)

<div class="topic-metadata">

**Author:** [@nelly](https://meta.discourse.org/u/nelly)\
**回覆:** 11\
**Last updated:** [2021年五月4日 08:50 UTC](https://meta.discourse.org/t/error-you-are-running-an-old-version-of-the-discourse-image/188860 "2021-05-04T08:50:02Z")

</div>

你好，这是我的第一个话题！我是 Nelly Eggsy，我正在使用 Ghost 和 Discourse 构建一个网站。 我通常在论坛潜水，在幕后阅读话题。如果我遇到困难，我会在论坛上搜索答案，然后…

---

## [如何每天每小时备份 Discourse](https://meta.discourse.org/t/how-to-take-backup-of-discourse-hourly-in-a-day/95593)

<div class="topic-metadata">

**Author:** [@pprp](https://meta.discourse.org/u/pprp)\
**回覆:** 12\
**Last updated:** [2018年九月10日 13:28 UTC](https://meta.discourse.org/t/how-to-take-backup-of-discourse-hourly-in-a-day/95593 "2018-09-10T13:28:12Z")

</div>

您好， 请问您能否协助解决以下问题： 如何每天每小时对 Discourse 进行备份？是否可以通过“/admin/site\_settings/category/backups”完成？还是应该检查 PostgreSQL 的备份机制？ 您能继续……

---

## [自托管 Discourse 论坛](https://meta.discourse.org/t/self-hosting-a-discourse-forum/189015)

<div class="topic-metadata">

**Author:** [@NateJones](https://meta.discourse.org/u/NateJones)\
**回覆:** 3\
**Last updated:** [2021年五月3日 22:20 UTC](https://meta.discourse.org/t/self-hosting-a-discourse-forum/189015 "2021-05-03T22:20:20Z")

</div>

您好， 我想为我的社区自托管一个论坛。但我想知道是否有人可以为我做这件事。我不想为此花任何钱。我花了一上午的时间寻找可行的方案，但都没有成功。有人可以……

---

## [有必要选择 Discourse 吗？](https://meta.discourse.org/t/it-is-necessary-to-select-discourse/189004)

<div class="topic-metadata">

**Author:** [@MuhammadMansuri](https://meta.discourse.org/u/MuhammadMansuri)\
**回覆:** 3\
**Last updated:** [2021年五月3日 17:13 UTC](https://meta.discourse.org/t/it-is-necessary-to-select-discourse/189004 "2021-05-03T17:13:00Z")

</div>

您好， 我正在创建一个用于论坛的 Droplet。我在 YouTube 上看过一个教程。那么，有必要选择 Discourse 吗？因为在域名那里我想托管任何与 Discourse 无关的其他网站。

---

## [帮助！firewall/permissions 和 postgre 的问题？](https://meta.discourse.org/t/help-problem-with-firewall-permissions-and-postgre/188927)

<div class="topic-metadata">

**Author:** [@laurakowa](https://meta.discourse.org/u/laurakowa)\
**回覆:** 3\
**Last updated:** [2021年五月3日 01:50 UTC](https://meta.discourse.org/t/help-problem-with-firewall-permissions-and-postgre/188927 "2021-05-03T01:50:37Z")

</div>

您好！ 这是我作为版主发布的第一个正式帖子，因为我通常只是潜水并寻找答案，但这个问题确实难住了我。我最近通过 ssh 更新了我们的 discourse，但在让论坛正常运行方面遇到了一些麻烦……

---

## [在无服务器容器服务上托管？](https://meta.discourse.org/t/hosting-on-serverless-container-services/188697)

<div class="topic-metadata">

**Author:** [@plipsqueek](https://meta.discourse.org/u/plipsqueek)\
**回覆:** 1\
**Last updated:** [2021年四月30日 17:07 UTC](https://meta.discourse.org/t/hosting-on-serverless-container-services/188697 "2021-04-30T17:07:29Z")

</div>

我目前在一个廉价的VPS上托管了两个Discourse社区。更新VPS很麻烦，所以我正在考虑迁移到一个允许我为容器分配资源的云托管平台，而……

---

## [在首次设置网站时排查"BAD CSRF"错误？](https://meta.discourse.org/t/troubleshooting-bad-csrf-error-on-initial-site-setup/97059)

<div class="topic-metadata">

**Author:** [@Lee\_Ars](https://meta.discourse.org/u/Lee_Ars)\
**回覆:** 18\
**Last updated:** [2021年四月30日 06:48 UTC](https://meta.discourse.org/t/troubleshooting-bad-csrf-error-on-initial-site-setup/97059 "2021-04-30T06:48:09Z")

</div>

Standing up a new Discourse forum as a separate docker container on a dedicated physical server that is already running an existing Discourse forum (which is humming along with no errors). Bootstrapping works without er…

---

## [Correct way to add rewrite rules to Nginx](https://meta.discourse.org/t/correct-way-to-add-rewrite-rules-to-nginx/24679)

<div class="topic-metadata">

**Author:** [@peter\_backx](https://meta.discourse.org/u/peter_backx)\
**回覆:** 5\
**Last updated:** [2015年二月3日 16:04 UTC](https://meta.discourse.org/t/correct-way-to-add-rewrite-rules-to-nginx/24679 "2015-02-03T16:04:55Z")

</div>

I’m currently migrating a discussion board to Discourse. I’m still learning about how Discourse is distributed and set up, but I’ve got the data imported and everything configured. After importing all the topics, I now …

---

## [自动升级从 2.6.0.beta5 到 2.7.0.beta3 失败](https://meta.discourse.org/t/automatic-upgrade-from-2-6-0-beta5-to-2-7-0-beta3-failed/177790)

<div class="topic-metadata">

**Author:** [@dictoon](https://meta.discourse.org/u/dictoon)\
**回覆:** 8\
**Last updated:** [2021年四月26日 19:56 UTC](https://meta.discourse.org/t/automatic-upgrade-from-2-6-0-beta5-to-2-7-0-beta3-failed/177790 "2021-04-26T19:56:03Z")

</div>

您好， 从 2.6.0.beta5 到 2.7.0.beta3 的一键浏览器升级失败，并出现以下错误： 89591216.5834941 正在压缩：browser-update-92cd9b3599f62ca785b6cbf3d8d3afb080d6cd463034e2fccefd5455b0f5fff6.js uglify…

---

## [DISCOURSE\_HOSTNAME 环境变量的目的是什么？](https://meta.discourse.org/t/whats-the-purpose-of-discourse-hostname-env/188140)

<div class="topic-metadata">

**Author:** [@Marcin\_J](https://meta.discourse.org/u/Marcin_J)\
**回覆:** 6\
**Last updated:** [2021年四月26日 18:16 UTC](https://meta.discourse.org/t/whats-the-purpose-of-discourse-hostname-env/188140 "2021-04-26T18:16:05Z")

</div>

您好， 我一直在尝试安装 Discourse。我注意到默认情况下 Docker 容器是用 DISCOURSE\_HOSTNAME 环境变量启动的。我尝试在没有此环境变量的情况下启动容器……

---

## [Rake uploads:migrate\_from\_s3 失败](https://meta.discourse.org/t/rake-uploads-migrate-from-s3-fails/154171)

<div class="topic-metadata">

**Author:** [@pnoeric](https://meta.discourse.org/u/pnoeric)\
**回覆:** 31\
**Last updated:** [2021年四月24日 09:51 UTC](https://meta.discourse.org/t/rake-uploads-migrate-from-s3-fails/154171 "2021-04-24T09:51:04Z")

</div>

我按照这里的步骤操作，备份了整个网站，克隆了我的 AWS S3 存储桶，在 Discourse 设置中将存储桶名称从原始存储桶更改为备份存储桶，并在设置中关闭了“上传到 S3”复选框。 所以……

---

## [SMTP 密码在入职流程中设置](https://meta.discourse.org/t/smtp-password-set-during-onboarding-process/186639)

<div class="topic-metadata">

**Author:** [@amanintech](https://meta.discourse.org/u/amanintech)\
**回覆:** 3\
**Last updated:** [2021年四月25日 12:08 UTC](https://meta.discourse.org/t/smtp-password-set-during-onboarding-process/186639 "2021-04-25T12:08:39Z")

</div>

在入职步骤中，我们需要添加一个 SMTP 密码，我们直接粘贴密码即可。但事实证明，由于密码是以“password”的形式写入的，这会导致身份验证失败，而 SMTP...

---

## [新注册用户未收到欢迎邮件](https://meta.discourse.org/t/new-signups-not-receiving-welcome-email/187616)

<div class="topic-metadata">

**Author:** [@Paul\_King1](https://meta.discourse.org/u/Paul_King1)\
**回覆:** 3\
**Last updated:** [2021年四月22日 14:42 UTC](https://meta.discourse.org/t/new-signups-not-receiving-welcome-email/187616 "2021-04-22T14:42:47Z")

</div>

我已经用几个电子邮件地址注册了我的论坛，以测试是否发送了欢迎电子邮件。它似乎没有发送。我可以在日志中看到摘要电子邮件定期发送，以及测试……

---

## [新的页面体验排名因素 - 核心网页指标](https://meta.discourse.org/t/new-on-page-experience-ranking-factors-core-web-vitals/187427)

<div class="topic-metadata">

**Author:** [@Bcat](https://meta.discourse.org/u/Bcat)\
**回覆:** 2\
**Last updated:** [2021年四月20日 02:17 UTC](https://meta.discourse.org/t/new-on-page-experience-ranking-factors-core-web-vitals/187427 "2021-04-20T02:17:37Z")

</div>

不知道这里是否有人感兴趣，因为网站的流量几乎都来自谷歌搜索？ 因为过去，这里的人们对内容更感兴趣，因为它是一个 JS 应用程序。 但随着 r

---

## [哎呀，数据库超时错误](https://meta.discourse.org/t/oops-error-due-to-database-timeout/186895)

<div class="topic-metadata">

**Author:** [@shantaram](https://meta.discourse.org/u/shantaram)\
**回覆:** 13\
**Last updated:** [2021年四月15日 09:53 UTC](https://meta.discourse.org/t/oops-error-due-to-database-timeout/186895 "2021-04-15T09:53:56Z")

</div>

主页的请求 http://10.201.61.8/forum 请求时间已超过 5 秒。 我们总是收到错误 Oops 是否有关于请求超过 5 秒的限制，或其他任何限制？谢谢！ Oo…

---

## [安装后出现404错误](https://meta.discourse.org/t/404-error-after-installaton/187151)

<div class="topic-metadata">

**Author:** [@Juba007](https://meta.discourse.org/u/Juba007)\
**回覆:** 8\
**Last updated:** [2021年四月18日 17:47 UTC](https://meta.discourse.org/t/404-error-after-installaton/187151 "2021-04-18T17:47:38Z")

</div>

您好，我刚尝试安装 Discourse。我实际上已经通过 DigitalOcean Droplet 成功完成了安装。但是现在当我访问域名时，我收到一个 404 错误消息。 让我有点困惑的是，我的 do……

---

## [添加301重定向的最佳方法](https://meta.discourse.org/t/best-way-to-add-a-301-redirect/187257)

<div class="topic-metadata">

**Author:** [@Paul\_King1](https://meta.discourse.org/u/Paul_King1)\
**回覆:** 3\
**Last updated:** [2021年四月18日 17:44 UTC](https://meta.discourse.org/t/best-way-to-add-a-301-redirect/187257 "2021-04-18T17:44:02Z")

</div>

有人能帮我为Discourse添加301重定向吗？ 我想将www重定向到非www。我也有子域名。 我在一些地方读到我需要在nginx中添加一行代码，但我不是真的……

---

## [升级失败：PostgreSQL 13 版本... 与 ... 10.12 版本不兼容](https://meta.discourse.org/t/upgrade-failed-postgresql-version-13-not-compatible-with-version-10-12/187201)

<div class="topic-metadata">

**Author:** [@ThePythonicCow](https://meta.discourse.org/u/ThePythonicCow)\
**回覆:** 6\
**Last updated:** [2021年四月17日 16:56 UTC](https://meta.discourse.org/t/upgrade-failed-postgresql-version-13-not-compatible-with-version-10-12/187201 "2021-04-17T16:56:03Z")

</div>

我有一个小型论坛, themooster.net, 基于 Discourse，已经有几个月没有升级了。 我点击了“管理员”推荐中的“更新”进行升级，它说我必须在 shell 提示符下进行升级……

---

## [最新测试版更新（2.7.0b7）出错了](https://meta.discourse.org/t/latest-beta-update-2-7-0b7-gone-wrong/186946)

<div class="topic-metadata">

**Author:** [@tremblap](https://meta.discourse.org/u/tremblap)\
**回覆:** 4\
**Last updated:** [2021年四月15日 12:45 UTC](https://meta.discourse.org/t/latest-beta-update-2-7-0b7-gone-wrong/186946 "2021-04-15T12:45:52Z")

</div>

你好 我是这个平台的快乐用户，到目前为止，所有更新都很顺利（在DigitalOcean的docker云服务器上，保存更新，并通过disco的/admin界面更新discourse和docker...

---

## [软件的一些问题（新手）](https://meta.discourse.org/t/few-questions-about-the-software-new-comer/186851)

<div class="topic-metadata">

**Author:** [@ykcorner](https://meta.discourse.org/u/ykcorner)\
**回覆:** 3\
**Last updated:** [2021年四月14日 22:20 UTC](https://meta.discourse.org/t/few-questions-about-the-software-new-comer/186851 "2021-04-14T22:20:31Z")

</div>

大家好。关于这款软件，我还有几个问题。我之前使用的是 Mybb/Xenforo/IPB 软件，觉得 Discourse 非常简洁，但仍有一些疑问。 安装 Discourse 有什么区别……

---

## [还在使用 v2.4，想升级到 v2.7](https://meta.discourse.org/t/still-using-v2-4-and-want-to-upgrade-to-v2-7/186784)

<div class="topic-metadata">

**Author:** [@Osh](https://meta.discourse.org/u/Osh)\
**回覆:** 4\
**Last updated:** [2021年四月14日 13:21 UTC](https://meta.discourse.org/t/still-using-v2-4-and-want-to-upgrade-to-v2-7/186784 "2021-04-14T13:21:25Z")

</div>

你好， 我们目前使用的社区网站是2019年的2.4版本，我看到有2.7beta可用，但没有明显的更新方法？ 管理员有简单的更新方法吗，还是我需要……

---

## [最快的启动最新稳定版 Discourse 的方法是什么？](https://meta.discourse.org/t/what-is-the-fastest-way-to-spin-up-a-latest-stable-version-of-discourse/186803)

<div class="topic-metadata">

**Author:** [@merefield](https://meta.discourse.org/u/merefield)\
**回覆:** 2\
**Last updated:** [2021年四月14日 13:18 UTC](https://meta.discourse.org/t/what-is-the-fastest-way-to-spin-up-a-latest-stable-version-of-discourse/186803 "2021-04-14T13:18:50Z")

</div>

我知道官方的安装设置。 我正在尝试调试 Stable 分支的一些依赖项，并决定为此任务启动一个独特的独立服务器。 最快的方法是什么？启动一个最新的稳定版本……

---

## [pgSQL root 访问 - 无需？ (docker)](https://meta.discourse.org/t/pgsql-root-access-without-docker/185940)

<div class="topic-metadata">

**Author:** [@lejeczek](https://meta.discourse.org/u/lejeczek)\
**回覆:** 3\
**Last updated:** [2021年四月14日 10:03 UTC](https://meta.discourse.org/t/pgsql-root-access-without-docker/185940 "2021-04-14T10:03:37Z")

</div>

大家好。 我正在尝试让 Discourse 使用一个已在运行的远程 PostgreSQL 服务器（我没有管理员控制权，但我可以与管理员沟通）。 问题是——在通过/在 Docker 中部署的同时，是否可能……

---

## [Lightbox not showing up on uploaded images after update](https://meta.discourse.org/t/lightbox-not-showing-up-on-uploaded-images-after-update/73009)

<div class="topic-metadata">

**Author:** [@SlyRemarks](https://meta.discourse.org/u/SlyRemarks)\
**回覆:** 14\
**Last updated:** [2021年四月13日 23:31 UTC](https://meta.discourse.org/t/lightbox-not-showing-up-on-uploaded-images-after-update/73009 "2021-04-13T23:31:25Z")

</div>

After the latest update (1.9.0.beta13), our Discourse isn’t displaying images with the lightbox feature (as detailed here); there is no black bar appearing beneath when highlighted. Older images are still showing the lig…

---

## [更新后网站损坏](https://meta.discourse.org/t/site-broken-after-update/186600)

<div class="topic-metadata">

**Author:** [@cybe](https://meta.discourse.org/u/cybe)\
**回覆:** 3\
**Last updated:** [2021年四月12日 23:08 UTC](https://meta.discourse.org/t/site-broken-after-update/186600 "2021-04-12T23:08:49Z")

</div>

我刚刚将 Discourse 更新到了 2.7.0.beta6（我记得是从 beta5）使用 Web 更新器，现在我的网站无法正常工作。 顶部的 Logo 和菜单栏丢失了，尽管分类和帖子可见……

---

## [SSL 收到超过最大允许长度的记录](https://meta.discourse.org/t/ssl-received-a-record-that-exceeded-the-maximum-permissible-length/93392)

<div class="topic-metadata">

**Author:** [@Pad\_Pors](https://meta.discourse.org/u/Pad_Pors)\
**回覆:** 13\
**Last updated:** [2018年八月28日 03:32 UTC](https://meta.discourse.org/t/ssl-received-a-record-that-exceeded-the-maximum-permissible-length/93392 "2018-08-28T03:32:36Z")

</div>

部分用户在 Firefox 中尝试打开我们的论坛时会出现以下错误： SSL 收到了一条超过最大允许长度的记录。错误代码：SSL\_ERROR\_RX\_RECORD\_TOO\_LONG 无论如何，他们都无法打开……

---

## [不经确认的帖子](https://meta.discourse.org/t/rake-post-without-confirmation/186487)

<div class="topic-metadata">

**Author:** [@Ludovik\_Dopierala](https://meta.discourse.org/u/Ludovik_Dopierala)\
**回覆:** 5\
**Last updated:** [2021年四月12日 19:29 UTC](https://meta.discourse.org/t/rake-post-without-confirmation/186487 "2021-04-12T19:29:57Z")

</div>

你好， 我需要玩 lof ot rake posts:remap 是否可以强制执行（无需确认 Y/n）？ 感谢帮助 Ludo

---

## [Postgres using 100% of CPU](https://meta.discourse.org/t/postgres-using-100-of-cpu/45261)

<div class="topic-metadata">

**Author:** [@MiG](https://meta.discourse.org/u/MiG)\
**回覆:** 16\
**Last updated:** [2018年八月25日 17:34 UTC](https://meta.discourse.org/t/postgres-using-100-of-cpu/45261 "2018-08-25T17:34:19Z")

</div>

Hi there, I’m seeing an issue on my docker install. It’s on Linode on Ubuntu 14.04. Postgres is using 100% of the CPU. The forum itself is working just fine, version v1.6.0.beta7 +156. Doesn’t seem any slower or anyt…

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

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