# Self-hosting

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

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

**Page:** 133

---

## [已解决：尝试使用 HTTPS 时出现 CSRF 错误](https://meta.discourse.org/t/solved-bad-csrf-when-trying-to-use-https/88116)

<div class="topic-metadata">

**Author:** [@Miguel\_David](https://meta.discourse.org/u/Miguel_David)\
**回覆:** 1\
**Last updated:** [2018年五月22日 09:55 UTC](https://meta.discourse.org/t/solved-bad-csrf-when-trying-to-use-https/88116 "2018-05-22T09:55:51Z")

</div>

我已使用以下技术栈部署了 Discourse： Cloudflare（免费套餐，提供 SSL 和 CDN） AWS 应用负载均衡器（非免费，负责 SSL 终止） AWS EC2 t2.small 服务器 本指南 discourse/docs/INSTALL-cloud.md …

---

## [当我重新发送电子邮件并激活我的新账户时，出现【"BAD CSRF"】](https://meta.discourse.org/t/when-i-resend-email-and-activate-my-new-account-get-bad-csrf/88088)

<div class="topic-metadata">

**Author:** [@Yule\_Augustine](https://meta.discourse.org/u/Yule_Augustine)\
**回覆:** 10\
**Last updated:** [2018年五月22日 03:27 UTC](https://meta.discourse.org/t/when-i-resend-email-and-activate-my-new-account-get-bad-csrf/88088 "2018-05-22T03:27:27Z")

</div>

\[图片\] \[图片\]

---

## [4.5美元阿里云无法让Discourse正常运行](https://meta.discourse.org/t/4-5-alicloud-cant-get-discourse-to-work/87959)

<div class="topic-metadata">

**Author:** [@seasiri](https://meta.discourse.org/u/seasiri)\
**回覆:** 11\
**Last updated:** [2018年五月21日 13:27 UTC](https://meta.discourse.org/t/4-5-alicloud-cant-get-discourse-to-work/87959 "2018-05-21T13:27:47Z")

</div>

你好，@codinghorror 让我们从我的租用的服务器配置开始：$4.5 阿里云，1GB 内存和 1 个 CPU。 我的 DNS A 记录指向服务器的公网 IP，我也使用该 IP 进行 SSH 连接。 我已经按照 discourse/docs/INSTALL… 进行操作。

---

## [无法在管理员设置中更改通知邮箱](https://meta.discourse.org/t/unable-to-change-the-notification-email-in-admin-settings/87817)

<div class="topic-metadata">

**Author:** [@celine](https://meta.discourse.org/u/celine)\
**回覆:** 1\
**Last updated:** [2018年五月18日 09:58 UTC](https://meta.discourse.org/t/unable-to-change-the-notification-email-in-admin-settings/87817 "2018-05-18T09:58:08Z")

</div>

我想在管理员设置中更改通知邮箱，但每次更改后它都会自动恢复为之前的邮箱地址，这也是我的“联系邮箱”地址……我确实已配置了 SPF 和 DKIM……

---

## [Postgresql 升级时在重建过程中遇到 locale 错误](https://meta.discourse.org/t/postgresql-upgrade-error-with-locale-on-rebuild/87621)

<div class="topic-metadata">

**Author:** [@\_vincent](https://meta.discourse.org/u/_vincent)\
**回覆:** 7\
**Last updated:** [2018年五月16日 13:43 UTC](https://meta.discourse.org/t/postgresql-upgrade-error-with-locale-on-rebuild/87621 "2018-05-16T13:43:17Z")

</div>

嗨， 我目前正在尝试重建我的容器，但它严重失败： perl：警告：设置区域失败。 perl：警告：请检查您的区域设置： LANGUAGE = (未设置)， LC\_ALL = (未设置)， LANG = "f…

---

## [Linode now has a $5/mo option](https://meta.discourse.org/t/linode-now-has-a-5-mo-option/57418)

<div class="topic-metadata">

**Author:** [@wscott](https://meta.discourse.org/u/wscott)\
**回覆:** 14\
**Last updated:** [2017年十二月28日 03:25 UTC](https://meta.discourse.org/t/linode-now-has-a-5-mo-option/57418 "2017-12-28T03:25:03Z")

</div>

Linode just announced a $5/mo option with 1GB of memory. This looks much better than the Digital Ocean version with 1/2 the memory. And several blogs report that Linode has faster disks and cpu than the matching DO nod…

---

## [安装期间出现无效字节序列错误](https://meta.discourse.org/t/invalid-byte-sequence-error-during-install/87430)

<div class="topic-metadata">

**Author:** [@GoMezzo](https://meta.discourse.org/u/GoMezzo)\
**回覆:** 8\
**Last updated:** [2018年五月14日 15:59 UTC](https://meta.discourse.org/t/invalid-byte-sequence-error-during-install/87430 "2018-05-14T15:59:27Z")

</div>

我们尝试在 Ubuntu 16.04 上安装 Discourse，一切顺利，直到出现这个错误。有人能找出问题所在并知道如何修复吗？ 更新成功。5 秒后重新构建。正在构建应用警告：…

---

## [在VPS / WHM单独账户上安装可能吗？](https://meta.discourse.org/t/installing-on-vps-whm-separate-account-possible/87291)

<div class="topic-metadata">

**Author:** [@Queth](https://meta.discourse.org/u/Queth)\
**回覆:** 2\
**Last updated:** [2018年五月11日 19:53 UTC](https://meta.discourse.org/t/installing-on-vps-whm-separate-account-possible/87291 "2018-05-11T19:53:29Z")

</div>

你好，我找到的主题是关于在单一账户/主机名下在VPS上安装的。然而，我想尝试设置以下内容，这样我就可以保持当前的论坛正常运行，并在切换时无停机时间……

---

## [IAM 和 S3 访问的存储桶策略](https://meta.discourse.org/t/iam-and-bucket-policy-for-s3-access/87222)

<div class="topic-metadata">

**Author:** [@Asher\_Densmore-Lynn](https://meta.discourse.org/u/Asher_Densmore-Lynn)\
**回覆:** 8\
**Last updated:** [2018年五月11日 04:02 UTC](https://meta.discourse.org/t/iam-and-bucket-policy-for-s3-access/87222 "2018-05-11T04:02:04Z")

</div>

我注意到，所有我找到的关于 Discourse 访问 S3 的教程都授予用户对存储桶的完全控制权——它们允许“s3:\*”权限。 这是一项极不明智的策略，因为它允许显著更...

---

## [€1.99 1GB 内存来自 online.net，有任何评价吗？](https://meta.discourse.org/t/1-99-1gb-ram-from-online-net-any-reviews/86738)

<div class="topic-metadata">

**Author:** [@\_nur](https://meta.discourse.org/u/_nur)\
**回覆:** 3\
**Last updated:** [2018年五月9日 20:40 UTC](https://meta.discourse.org/t/1-99-1gb-ram-from-online-net-any-reviews/86738 "2018-05-09T20:40:04Z")

</div>

https://blog.online.net/2018/05/03/introducing-scaleway-nextgen-nvme-cloud-servers-with-hot-snapshots/ 我目前使用的是阿里云一年期服务。

---

## [在 Mac OS X 上使用 Postfix 作为本地 SMTP 以运行 Discourse](https://meta.discourse.org/t/use-postfix-as-local-smtp-mac-os-x-to-use-the-discourse/87075)

<div class="topic-metadata">

**Author:** [@Raha\_Soleymanzadeh](https://meta.discourse.org/u/Raha_Soleymanzadeh)\
**回覆:** 1\
**Last updated:** [2018年五月9日 16:59 UTC](https://meta.discourse.org/t/use-postfix-as-local-smtp-mac-os-x-to-use-the-discourse/87075 "2018-05-09T16:59:00Z")

</div>

如何在 Mac OS X 上使用 Postfix 作为本地 SMTP，以在 DigitalOcean 上部署 Discourse 一键应用？ 如果可行的话，能否请您指导我具体如何操作？

---

## [致命错误：无法访问'https://github.com/SamSaffron/pups.git/'](https://meta.discourse.org/t/fatal-unable-to-access-https-github-com-samsaffron-pups-git/86477)

<div class="topic-metadata">

**Author:** [@Wingysam](https://meta.discourse.org/u/Wingysam)\
**回覆:** 11\
**Last updated:** [2018年五月8日 21:43 UTC](https://meta.discourse.org/t/fatal-unable-to-access-https-github-com-samsaffron-pups-git/86477 "2018-05-08T21:43:51Z")

</div>

我已按照 discourse/docs/INSTALL-cloud.md（位于 main · discourse/discourse · GitHub）中的说明进行操作，但在尝试运行 ./discourse-setup 时收到以下错误： fatal: unable to access 'https://github.com/SamSaff…

---

## [在 Win10/Ubuntu 开发环境中恢复备份失败](https://meta.discourse.org/t/restoring-backup-fails-in-win10-ubuntu-development-environment/86893)

<div class="topic-metadata">

**Author:** [@Cheeser](https://meta.discourse.org/u/Cheeser)\
**回覆:** 12\
**Last updated:** [2018年五月7日 21:28 UTC](https://meta.discourse.org/t/restoring-backup-fails-in-win10-ubuntu-development-environment/86893 "2018-05-07T21:28:24Z")

</div>

无法让上传系统正常工作（它从未将备份放在需要的位置），因此我放弃了，手动将文件复制到 /~discourse/public/backups/default。这使备份出现在列表中。点击……

---

## [无法在 16.04 上发送邮件 - DigitalOcean](https://meta.discourse.org/t/cant-send-mail-on-16-04-digitalocean/86852)

<div class="topic-metadata">

**Author:** [@Jack\_Spangenberg](https://meta.discourse.org/u/Jack_Spangenberg)\
**回覆:** 9\
**Last updated:** [2018年五月6日 01:50 UTC](https://meta.discourse.org/t/cant-send-mail-on-16-04-digitalocean/86852 "2018-05-06T01:50:41Z")

</div>

我找了一整天答案，一无所获。 我正在通过 GitHub 上的第一个 Rails 应用指南进行全新安装。 使用 1GB 的 DigitalOcean Droplet。 使用 NameCheap 的私人邮件服务器。 这是我的 app.yml： DISCO…

---

## [在现有社区/域上安装时的迁移场景？](https://meta.discourse.org/t/migration-scenarios-when-installing-on-an-existing-community-domain/86698)

<div class="topic-metadata">

**Author:** [@Queth](https://meta.discourse.org/u/Queth)\
**回覆:** 7\
**Last updated:** [2018年五月4日 23:25 UTC](https://meta.discourse.org/t/migration-scenarios-when-installing-on-an-existing-community-domain/86698 "2018-05-04T23:25:56Z")

</div>

你好， 我刚刚爱上 Discourse 作为我的新社区解决方案。 在开始安装之前，我想先了解一下迁移方面有哪些可能性。 当前情况： 我有一个现有的 co…

---

## [调试邮件问题或重建 Discourse](https://meta.discourse.org/t/debugging-email-problem-and-or-rebuilding-discourse/86382)

<div class="topic-metadata">

**Author:** [@kendollard](https://meta.discourse.org/u/kendollard)\
**回覆:** 6\
**Last updated:** [2018年五月4日 15:41 UTC](https://meta.discourse.org/t/debugging-email-problem-and-or-rebuilding-discourse/86382 "2018-05-04T15:41:19Z")

</div>

试图模糊 Discourse 认为此帖子中的链接，以便发送： 我是 Rails 和 Discourse 的新手。我已按照说明尝试使用 Docker 在 DigitalOcean 上安装 Discourse，并使用 Mailjet 作为我的…

---

## [DIY Discourse：想在自己的服务器上安装 Discourse](https://meta.discourse.org/t/diy-discourse-would-love-to-install-discourse-on-my-own/86604)

<div class="topic-metadata">

**Author:** [@dave\_odiakaose](https://meta.discourse.org/u/dave_odiakaose)\
**回覆:** 9\
**Last updated:** [2018年五月3日 17:17 UTC](https://meta.discourse.org/t/diy-discourse-would-love-to-install-discourse-on-my-own/86604 "2018-05-03T17:17:48Z")

</div>

我可以自己搭建 Discourse 吗？

---

## [集群部署](https://meta.discourse.org/t/cluster-deployment/86511)

<div class="topic-metadata">

**Author:** [@qianqiang](https://meta.discourse.org/u/qianqiang)\
**回覆:** 1\
**Last updated:** [2018年五月1日 08:57 UTC](https://meta.discourse.org/t/cluster-deployment/86511 "2018-05-01T08:57:25Z")

</div>

论坛是否支持集群部署？是否有集群配置教程？

---

## [Discourse Docker 容器无法访问 DNS](https://meta.discourse.org/t/discourse-docker-container-has-trouble-reaching-dns/86439)

<div class="topic-metadata">

**Author:** [@yuri-zubov](https://meta.discourse.org/u/yuri-zubov)\
**回覆:** 10\
**Last updated:** [2018年四月30日 09:05 UTC](https://meta.discourse.org/t/discourse-docker-container-has-trouble-reaching-dns/86439 "2018-04-30T09:05:55Z")

</div>

我在 Ubuntu 18.04 的 AWS EC2 实例上安装 Discourse 时遇到了问题。 我从 Ubuntu Amazon EC2 AMI Finder 中选取了 ami-22741f5a。 已安装 Docker：sudo apt-get install docker.io docker version 客户端： 版本：17…

---

## [I just hit my CPU cap on the Digital Ocean 2GB/2xCPU plan](https://meta.discourse.org/t/i-just-hit-my-cpu-cap-on-the-digital-ocean-2gb-2xcpu-plan/39369)

<div class="topic-metadata">

**Author:** [@ljpp](https://meta.discourse.org/u/ljpp)\
**回覆:** 35\
**Last updated:** [2018年四月30日 08:31 UTC](https://meta.discourse.org/t/i-just-hit-my-cpu-cap-on-the-digital-ocean-2gb-2xcpu-plan/39369 "2018-04-30T08:31:55Z")

</div>

Today it happened that I have been waiting for some time - things got busy on the forum, and I hit the CPU cap of the 2GB/2x CPU-core plan of Digital Ocean. Things started slowing down considerably, but the the site rema…

---

## [Docker 代理后及 Elkarte 迁移](https://meta.discourse.org/t/docker-behind-a-proxy-and-elkarte-conversion/86166)

<div class="topic-metadata">

**Author:** [@tetricky](https://meta.discourse.org/u/tetricky)\
**回覆:** 2\
**Last updated:** [2018年四月26日 06:13 UTC](https://meta.discourse.org/t/docker-behind-a-proxy-and-elkarte-conversion/86166 "2018-04-26T06:13:34Z")

</div>

我有几个问题，希望能帮我理清思路。我脑子里一直在打转。 首先：我有一台配置不错的 VPS，上面运行着多个 Web 应用，前面由 nginx 代理…

---

## [用户由于403错误无法登录](https://meta.discourse.org/t/users-cant-sign-in-due-to-403-error/56449)

<div class="topic-metadata">

**Author:** [@Frey](https://meta.discourse.org/u/Frey)\
**回覆:** 12\
**Last updated:** [2018年四月24日 08:33 UTC](https://meta.discourse.org/t/users-cant-sign-in-due-to-403-error/56449 "2018-04-24T08:33:29Z")

</div>

嘿，大家，我试图在我的论坛中的一个话题发帖，但遇到403错误。我决定清除cookie，现在甚至无法登录。我用gut pull和./launcher rebuild app更新了Discourse，但都没有帮助……

---

## [AWS 实例类型大小的一般指南](https://meta.discourse.org/t/general-guidelines-for-size-of-aws-instance-types/85953)

<div class="topic-metadata">

**Author:** [@Ave](https://meta.discourse.org/u/Ave)\
**回覆:** 5\
**Last updated:** [2018年四月23日 21:50 UTC](https://meta.discourse.org/t/general-guidelines-for-size-of-aws-instance-types/85953 "2018-04-23T21:50:56Z")

</div>

各位，我正在尝试为 AWS 确定一个实例类型，以支持每月约 200 名用户，每位用户每天使用平台约两次。是否有通用的经验法则可以帮助我确定所需的实例规格？

---

## [在 VPS 上安装遇到问题？](https://meta.discourse.org/t/install-on-vps-problem/85648)

<div class="topic-metadata">

**Author:** [@Brekila1312](https://meta.discourse.org/u/Brekila1312)\
**回覆:** 2\
**Last updated:** [2018年四月19日 20:26 UTC](https://meta.discourse.org/t/install-on-vps-problem/85648 "2018-04-19T20:26:37Z")

</div>

如果端口 80 和 443 已被占用，如何让 Discourse 使用其他端口？

---

## [Discourse 多站点安装在 DigitalOcean 上的帮助](https://meta.discourse.org/t/discourse-multisite-installation-help-with-digitalocean/85723)

<div class="topic-metadata">

**Author:** [@rizwan](https://meta.discourse.org/u/rizwan)\
**回覆:** 1\
**Last updated:** [2018年四月19日 15:30 UTC](https://meta.discourse.org/t/discourse-multisite-installation-help-with-digitalocean/85723 "2018-04-19T15:30:34Z")

</div>

你好， 我已通过以下链接在 DigitalOcean 上安装了 Discourse： discourse/docs/INSTALL-cloud.md at main · discourse/discourse · GitHub 现在我想要启用多站点功能，因此我查看了以下链接： …

---

## [从 DigitalOcean 一键应用安装后无语言选项](https://meta.discourse.org/t/no-language-options-after-installing-from-digitalocean-one-click-app/85452)

<div class="topic-metadata">

**Author:** [@Shpigford](https://meta.discourse.org/u/Shpigford)\
**回覆:** 1\
**Last updated:** [2018年四月16日 19:32 UTC](https://meta.discourse.org/t/no-language-options-after-installing-from-digitalocean-one-click-app/85452 "2018-04-16T19:32:19Z")

</div>

我使用了 DigitalOcean 的一键应用安装选项，一切看起来都很顺利，但向导中的语言/区域设置部分似乎有问题。 它不允许我选择任何选项…… \[下午 4:20\] 不确定该怎么办……

---

## [新安装的问题](https://meta.discourse.org/t/problem-with-fresh-installation/85187)

<div class="topic-metadata">

**Author:** [@Fajfi](https://meta.discourse.org/u/Fajfi)\
**回覆:** 8\
**Last updated:** [2018年四月14日 13:11 UTC](https://meta.discourse.org/t/problem-with-fresh-installation/85187 "2018-04-14T13:11:22Z")

</div>

你好！ 我需要像我最近尝试的那样创建新的discourse，我使用了以下命令： https://github.com/discourse/discourse/blob/master/docs/INSTALL-cloud.md 当我尝试使用discourse-setup创建app.yml时，遇到如下问题： …

---

## [DigitalOcean 是必需的吗？](https://meta.discourse.org/t/is-digitalocean-necessary/85260)

<div class="topic-metadata">

**Author:** [@katiesmith](https://meta.discourse.org/u/katiesmith)\
**回覆:** 3\
**Last updated:** [2018年四月13日 19:49 UTC](https://meta.discourse.org/t/is-digitalocean-necessary/85260 "2018-04-13T19:49:08Z")

</div>

我想在我的网站上搭建一个 Discourse 论坛。目前我正在付费使用 Discourse，但在安装“操作指南”中，DigitalOcean 似乎是设置的第一步。

---

## [安装程序仅要求输入 SMTP 密码](https://meta.discourse.org/t/install-only-asks-for-smtp-password/85156)

<div class="topic-metadata">

**Author:** [@pablostarter](https://meta.discourse.org/u/pablostarter)\
**回覆:** 4\
**Last updated:** [2018年四月12日 22:54 UTC](https://meta.discourse.org/t/install-only-asks-for-smtp-password/85156 "2018-04-12T22:54:12Z")

</div>

我试图在 Debian 服务器上按照 30 分钟安装指南安装 Discourse，但当我运行： ./discourse-setup 时，系统只询问了 SMTP 密码和 Let's Encrypt 的邮箱地址。输入这些信息后，我……

---

## [Discourse 重建因 YAML 文件中的空格而失败](https://meta.discourse.org/t/rebuild-of-discourse-fails-due-to-spaces-in-yaml-file/85135)

<div class="topic-metadata">

**Author:** [@pgeschke](https://meta.discourse.org/u/pgeschke)\
**回覆:** 8\
**Last updated:** [2018年四月12日 07:02 UTC](https://meta.discourse.org/t/rebuild-of-discourse-fails-due-to-spaces-in-yaml-file/85135 "2018-04-12T07:02:28Z")

</div>

大家好！ 我按照 DigitalOcean 的“如何在 Ubuntu 16.04 上安装 Discourse”指南安装了 Discourse，然后尝试按照“修改最大附件大小”的说明调整上传限制。 不幸的是，这导致我遇到了一个错误： 确保 ……

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

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