# Self-hosting

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

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

**Page:** 116

---

## [安装 - 运行两行后停止](https://meta.discourse.org/t/installation-stop-after-running-two-lines/128847)

<div class="topic-metadata">

**Author:** [@Mak](https://meta.discourse.org/u/Mak)\
**回覆:** 5\
**Last updated:** [2019年九月22日 11:57 UTC](https://meta.discourse.org/t/installation-stop-after-running-two-lines/128847 "2019-09-22T11:57:55Z")

</div>

你好，Discourse， 我正在使用 dreamCompute（Ubuntu-18.04）按照官方安装指南设置 Discourse。 它似乎没有安装 Docker。我已经等待了一个小时，但安装仍未继续。我成功...

---

## [添加标签 500 错误](https://meta.discourse.org/t/add-tags-500-error/129085)

<div class="topic-metadata">

**Author:** [@appcomqa](https://meta.discourse.org/u/appcomqa)\
**回覆:** 5\
**Last updated:** [2019年九月20日 15:26 UTC](https://meta.discourse.org/t/add-tags-500-error/129085 "2019-09-20T15:26:39Z")

</div>

您好， 我刚刚添加标签时出现 500 错误。 日志： ActiveRecord::RecordNotUnique (PG::UniqueViolation: 错误：重复键值违反唯一约束 "index\_tags\_on\_name" 详情：键 (name)=(TAGTEST) 已存在。) /var/…

---

## [重建时出现数据库系统未正确关闭的错误](https://meta.discourse.org/t/database-system-was-not-properly-shut-down-error-when-rebuilding/128979)

<div class="topic-metadata">

**Author:** [@GuilhermeBac](https://meta.discourse.org/u/GuilhermeBac)\
**回覆:** 3\
**Last updated:** [2019年九月19日 13:14 UTC](https://meta.discourse.org/t/database-system-was-not-properly-shut-down-error-when-rebuilding/128979 "2019-09-19T13:14:06Z")

</div>

==================== 严重问题！！！！ ==================== 应用未运行！ 正在尝试重新构建 ==================== 重新构建日志 ==================== 确保启动器为最新版本 正在获取远程仓库 启动器已是最新版本…

---

## [运行 Discourse 时，两个 CPU 核心是否更好？](https://meta.discourse.org/t/are-two-cpu-cores-better-to-run-discourse/128976)

<div class="topic-metadata">

**Author:** [@koltl](https://meta.discourse.org/u/koltl)\
**回覆:** 7\
**Last updated:** [2019年九月19日 12:43 UTC](https://meta.discourse.org/t/are-two-cpu-cores-better-to-run-discourse/128976 "2019-09-19T12:43:00Z")

</div>

我正在寻找一台用于 Discourse 的 VPS，有两个选项可供选择：一台 2GB 内存、2 核 CPU、25GB 存储的服务器，以及一台仅贵 1 美元、2GB 内存、1 核 CPU、20GB 存储的服务器。问题是：是否值得……

---

## [Discourse 设置假设已安装 netcat](https://meta.discourse.org/t/discourse-setup-assumes-netcat-is-installed/128893)

<div class="topic-metadata">

**Author:** [@andorenan](https://meta.discourse.org/u/andorenan)\
**回覆:** 3\
**Last updated:** [2019年九月19日 09:53 UTC](https://meta.discourse.org/t/discourse-setup-assumes-netcat-is-installed/128893 "2019-09-19T09:53:43Z")

</div>

我刚刚成功搭建了我的第一个 Discourse 实例，尽管过程中遇到了一些困难。我运行的是 Debian Stretch，并遵循了 Docker 安装指南。 在设置过程中，脚本会检查……

---

## [邮件无法使用](https://meta.discourse.org/t/mails-not-working/128846)

<div class="topic-metadata">

**Author:** [@Benjamin\_Grziwok](https://meta.discourse.org/u/Benjamin_Grziwok)\
**回覆:** 3\
**Last updated:** [2019年九月18日 22:06 UTC](https://meta.discourse.org/t/mails-not-working/128846 "2019-09-18T22:06:37Z")

</div>

嘿，社区成员， 我在发送邮件时遇到了问题。问题是测试邮件可以发送，但如果是正常邮件则无法发送。我通过 SMTP 使用 Mailgun，日志中仅显示测试邮件的发送记录。 ……

---

## [首次在浏览器中打开 Discourse 时出错](https://meta.discourse.org/t/error-when-discourse-is-opened-first-time-on-a-browser/128931)

<div class="topic-metadata">

**Author:** [@Earlie](https://meta.discourse.org/u/Earlie)\
**回覆:** 3\
**Last updated:** [2019年九月18日 18:46 UTC](https://meta.discourse.org/t/error-when-discourse-is-opened-first-time-on-a-browser/128931 "2019-09-18T18:46:23Z")

</div>

我已在 Digital Ocean 上安装了 Discourse 实例，在完成设置后尝试启动 Discourse 时，打开一个空白页面，显示以下文本：

---

## [\[DigitalOcean\] A 记录中包含“www”的主机名显示空白页面](https://meta.discourse.org/t/digitalocean-hostname-having-www-in-a-records-showing-blank-page/128227)

<div class="topic-metadata">

**Author:** [@Systmyz](https://meta.discourse.org/u/Systmyz)\
**回覆:** 22\
**Last updated:** [2019年九月18日 14:58 UTC](https://meta.discourse.org/t/digitalocean-hostname-having-www-in-a-records-showing-blank-page/128227 "2019-09-18T14:58:26Z")

</div>

各位成员， 在我的 DigitalOcean Droplet 的 DNS 记录中，我为我的域名创建了两条“A”记录，主机名分别为“www”（www.HardwareMana.community）和空白（HardwareMana.community），它们都指向 Cloud…

---

## [Excon SSL 验证问题：ONEBOX](https://meta.discourse.org/t/excon-ssl-verify-issue-for-onebox/128747)

<div class="topic-metadata">

**Author:** [@Brown\_Glenn](https://meta.discourse.org/u/Brown_Glenn)\
**回覆:** 7\
**Last updated:** [2019年九月18日 05:23 UTC](https://meta.discourse.org/t/excon-ssl-verify-issue-for-onebox/128747 "2019-09-18T05:23:58Z")

</div>

大家好， 我刚搭建并开始测试 Discourse 服务器，目前运行良好。但我遇到了一个问题：onebox 无法正常工作，我认为这是由于 SSL 检查过滤器导致 excon gem 验证失败所致。…

---

## [初学者安装 Discourse 但愿意成为社区一员](https://meta.discourse.org/t/discourse-installation-for-beginners-but-are-willing-to-be-part-of-the-community/128633)

<div class="topic-metadata">

**Author:** [@Earlie](https://meta.discourse.org/u/Earlie)\
**回覆:** 62\
**Last updated:** [2019年九月17日 21:41 UTC](https://meta.discourse.org/t/discourse-installation-for-beginners-but-are-willing-to-be-part-of-the-community/128633 "2019-09-17T21:41:36Z")

</div>

大家好， 我非常想知道是否有一份详细的分步指南，适用于 Discourse 的安装，最好配有插图，包括电子邮件和域名设置，适合初学者以及那些有一些...

---

## [自定义“关于”页面副标题链接](https://meta.discourse.org/t/customizing-the-about-page-sub-header-links/128762)

<div class="topic-metadata">

**Author:** [@smileypants707](https://meta.discourse.org/u/smileypants707)\
**回覆:** 2\
**Last updated:** [2019年九月17日 08:38 UTC](https://meta.discourse.org/t/customizing-the-about-page-sub-header-links/128762 "2019-09-17T08:38:34Z")

</div>

我非常喜欢 Plex 在开发其论坛时所投入的细节。我特别欣赏的一点是，他们成功地将“指南”链接嵌入到了“关于”页面的副标题中： 那么，如果我不……

---

## [关于 t2.micro AWS 实例的讨论](https://meta.discourse.org/t/discourse-on-t2-micro-aws-instance/128704)

<div class="topic-metadata">

**Author:** [@AndyML](https://meta.discourse.org/u/AndyML)\
**回覆:** 1\
**Last updated:** [2019年九月17日 05:26 UTC](https://meta.discourse.org/t/discourse-on-t2-micro-aws-instance/128704 "2019-09-17T05:26:51Z")

</div>

我是一名 Linux 管理员，对 AWS 有一定了解，曾被邀请协助一个团队在 t2.micro（符合免费套餐资格）的 AWS 实例上部署 Discourse。完成后，团队要求我将我的方法发布到这里以供……

---

## [在 DigitalOcean Droplet 上通过子域名安装了 Discourse。如何为根域名添加 Node/Vue.js？](https://meta.discourse.org/t/installed-discourse-on-subdomain-via-digitalocean-droplet-how-do-i-add-node-vue-js-on-main-domain/128312)

<div class="topic-metadata">

**Author:** [@4ndy](https://meta.discourse.org/u/4ndy)\
**回覆:** 3\
**Last updated:** [2019年九月16日 20:11 UTC](https://meta.discourse.org/t/installed-discourse-on-subdomain-via-digitalocean-droplet-how-do-i-add-node-vue-js-on-main-domain/128312 "2019-09-16T20:11:29Z")

</div>

我已通过 20 美元的 DigitalOcean Droplet 在“论坛”子域名上成功安装了 Discourse。 我现在能否在我的主域名（https://www.example.com）上创建一个网站？ 即使只是一个静态 HTML 页面也可以。我正计划…

---

## [通过 SMTP 无凭据中继注册邮件](https://meta.discourse.org/t/registration-email-relay-through-smtp-without-credentials/128715)

<div class="topic-metadata">

**Author:** [@jfbourdeau](https://meta.discourse.org/u/jfbourdeau)\
**回覆:** 1\
**Last updated:** [2019年九月16日 19:07 UTC](https://meta.discourse.org/t/registration-email-relay-through-smtp-without-credentials/128715 "2019-09-16T19:07:14Z")

</div>

我运行了 Discourse 安装，一切顺利，我可以访问要求输入用户名和密码的 Web 界面，并希望发送测试/注册邮件。在安装过程中，系统要求输入用户名和密码，我输入了一个"…"

---

## [作业异常：JavaScript 已终止（因超时或显式终止）](https://meta.discourse.org/t/job-exception-javascript-was-terminated-either-by-timeout-or-explicitly/128069)

<div class="topic-metadata">

**Author:** [@ky\_metro](https://meta.discourse.org/u/ky_metro)\
**回覆:** 7\
**Last updated:** [2019年九月14日 04:12 UTC](https://meta.discourse.org/t/job-exception-javascript-was-terminated-either-by-timeout-or-explicitly/128069 "2019-09-14T04:12:56Z")

</div>

我刚刚将旧版 Discourse 安装（1.9.0.beta5）迁移到 Digital Ocean 上一台全新且包含最新组件的 Droplet 上。鉴于其版本较旧，我不确定所有数据是否都能正确迁移，但看起来运行正常…

---

## [429 请求过多](https://meta.discourse.org/t/429-too-many-requests/128350)

<div class="topic-metadata">

**Author:** [@izzy](https://meta.discourse.org/u/izzy)\
**回覆:** 4\
**Last updated:** [2019年九月13日 22:41 UTC](https://meta.discourse.org/t/429-too-many-requests/128350 "2019-09-13T22:41:36Z")

</div>

大家好，我知道之前有很多关于“请求过多”的帖子，但这个情况似乎并不完全符合。我在 Discourse 中遇到了间歇性的 429 错误（而且整体运行速度也相当慢），并出现了以下回溯…

---

## [切换到另一个 Redis 实例？](https://meta.discourse.org/t/switching-to-another-redis-instance/128065)

<div class="topic-metadata">

**Author:** [@Vencent](https://meta.discourse.org/u/Vencent)\
**回覆:** 4\
**Last updated:** [2019年九月10日 05:38 UTC](https://meta.discourse.org/t/switching-to-another-redis-instance/128065 "2019-09-10T05:38:29Z")

</div>

我的 Discourse 实例之前与其他应用程序共享一个 Redis 实例。现在我想让 Discourse 使用其独立的 Redis 实例。我是否只需编辑 YML 配置文件，引导新镜像，然后重启容器……

---

## [仅更改子域名时 Rebake 失败](https://meta.discourse.org/t/rebake-fails-when-changing-the-subdomain-name-only/128104)

<div class="topic-metadata">

**Author:** [@YaserAlnajjar](https://meta.discourse.org/u/YaserAlnajjar)\
**回覆:** 4\
**Last updated:** [2019年九月10日 00:30 UTC](https://meta.discourse.org/t/rebake-fails-when-changing-the-subdomain-name-only/128104 "2019-09-10T00:30:49Z")

</div>

您好 我最近将生产环境的 /shared 数据库文件夹复制到了预发布服务器（以使两个环境保持一致）。 我注意到链接指向的是之前的域名，因此我按照此指南操作 当运行…

---

## [./launcher rebuild app 命令未找到](https://meta.discourse.org/t/launcher-rebuild-app-command-not-found/128066)

<div class="topic-metadata">

**Author:** [@bobdude](https://meta.discourse.org/u/bobdude)\
**回覆:** 6\
**Last updated:** [2019年九月10日 00:17 UTC](https://meta.discourse.org/t/launcher-rebuild-app-command-not-found/128066 "2019-09-10T00:17:45Z")

</div>

通过 Web UI 进行的升级已禁用，直到您运行最新的镜像。 为此，请使用 SSH 登录您的服务器并运行以下命令： cd /var/discourse git pull ./launcher rebuild app 我在查看时看到了上述屏幕……

---

## [如何为非生产环境测试设置电子邮件 SMTP？](https://meta.discourse.org/t/how-do-i-set-up-email-smtp-for-non-production-testing/127975)

<div class="topic-metadata">

**Author:** [@Glen](https://meta.discourse.org/u/Glen)\
**回覆:** 1\
**Last updated:** [2019年九月8日 19:14 UTC](https://meta.discourse.org/t/how-do-i-set-up-email-smtp-for-non-production-testing/127975 "2019-09-08T19:14:32Z")

</div>

我想在本地测试实验室环境中安装 Discourse，但在设置邮件配置时遇到了困难。我没有配置 SMTP 服务器。我可以使用个人邮箱账户，或者使用我的域名托管服务商的邮件服务吗？

---

## [邮件中的嵌入图像已设置为 https://domain.com:80](https://meta.discourse.org/t/embed-images-are-set-to-https-domain-com-80-in-email/127967)

<div class="topic-metadata">

**Author:** [@Senthil](https://meta.discourse.org/u/Senthil)\
**回覆:** 6\
**Last updated:** [2019年九月8日 19:04 UTC](https://meta.discourse.org/t/embed-images-are-set-to-https-domain-com-80-in-email/127967 "2019-09-08T19:04:25Z")

</div>

我最近迁移了我的服务器，我的 Discourse 实例前没有运行自定义的 Nginx。 这是按照快速入门指南设置的常规标准版 Discourse。内容已从...迁移。

---

## [Pq.hosting - 有人试过吗？欢迎反馈](https://meta.discourse.org/t/pq-hosting-anyone-tried-yet-feedback-please/127886)

<div class="topic-metadata">

**Author:** [@meglio](https://meta.discourse.org/u/meglio)\
**回覆:** 0\
**Last updated:** [2019年九月7日 13:13 UTC](https://meta.discourse.org/t/pq-hosting-anyone-tried-yet-feedback-please/127886 "2019-09-07T13:13:32Z")

</div>

与 10-20 美元价位的 Digital Ocean 相比，看起来非常不错。有人尝试过吗？ 附：此外，它可能是一个廉价运行专用于 Mail-in-a-Box 的 VPS 的良好候选方案。

---

## [sshd 模板出现意外重建错误](https://meta.discourse.org/t/unexpected-rebuild-error-with-sshd-template/127454)

<div class="topic-metadata">

**Author:** [@Stranik](https://meta.discourse.org/u/Stranik)\
**回覆:** 4\
**Last updated:** [2019年九月3日 19:38 UTC](https://meta.discourse.org/t/unexpected-rebuild-error-with-sshd-template/127454 "2019-09-03T19:38:20Z")

</div>

插件已禁用 … + /usr/bin/docker stop -t 10 app app cd /pups && git pull && /pups/bin/pups --stdin 已是最新状态。 I, \[2019-09-03T04:49:39.718262 #1\] INFO -- : 正在加载 --stdin I, \[2019-09-03T04:49:39.723865 #1\]…

---

## [无法激活账户](https://meta.discourse.org/t/unable-to-activate-account/127802)

<div class="topic-metadata">

**Author:** [@Curt\_Lee](https://meta.discourse.org/u/Curt_Lee)\
**回覆:** 18\
**Last updated:** [2019年九月6日 20:19 UTC](https://meta.discourse.org/t/unable-to-activate-account/127802 "2019-09-06T20:19:52Z")

</div>

大家好！ 所以我目前正在尝试设置 Discourse！ 到目前为止，一切看起来都很顺利，电子邮件等功能也都正常。 所以当我第一次加入我的新 Discourse 时，它像往常一样提示我进行注册等操作，我输入了管理员密码，但……

---

## [Db:migrate 在 discourse-calendar（稳定分支）上失败](https://meta.discourse.org/t/db-migrate-fails-on-discourse-calendar-stable-branches/127787)

<div class="topic-metadata">

**Author:** [@trobiyo](https://meta.discourse.org/u/trobiyo)\
**回覆:** 2\
**Last updated:** [2019年九月6日 11:55 UTC](https://meta.discourse.org/t/db-migrate-fails-on-discourse-calendar-stable-branches/127787 "2019-09-06T11:55:47Z")

</div>

嗨 @zogstrip， 参考此链接：https://meta.discourse.org/t/db-migrate-fails-on-discourse-calendar/124229/2 在稳定分支（具体为最新版本 v2.3.3）上也失败了。 rake aborted! NoMethodError: 未定义的 me…

---

## [如何在同一 VPS 上安装第二个 Discourse 实例？](https://meta.discourse.org/t/how-to-install-a-second-instance-of-discourse-in-same-vps/127530)

<div class="topic-metadata">

**Author:** [@chi\_noti\_info](https://meta.discourse.org/u/chi_noti_info)\
**回覆:** 4\
**Last updated:** [2019年九月5日 02:11 UTC](https://meta.discourse.org/t/how-to-install-a-second-instance-of-discourse-in-same-vps/127530 "2019-09-05T02:11:13Z")

</div>

只需在与 /var/discourse 不同的目录中执行“30 分钟安装”吗？使用此方法是否可能产生任何冲突？我将为新的 Discourse 使用第二个 IP，我使用的...

---

## [使用测试 SSL 证书安装 Discourse](https://meta.discourse.org/t/install-discourse-with-a-staging-test-ssl-certificate/121299)

<div class="topic-metadata">

**Author:** [@UnivacTwo](https://meta.discourse.org/u/UnivacTwo)\
**回覆:** 2\
**Last updated:** [2019年九月4日 15:15 UTC](https://meta.discourse.org/t/install-discourse-with-a-staging-test-ssl-certificate/121299 "2019-09-04T15:15:31Z")

</div>

Let's Encrypt 对同一域名每周可生成的证书数量有限制。不幸的是，我们已达到此限制，本周无法生成新证书。 我们已对我们的社区进行了备份……

---

## [Www.example.com 正常，但 example.com 不行](https://meta.discourse.org/t/www-example-com-ok-but-example-com-not/127583)

<div class="topic-metadata">

**Author:** [@John\_Smith3](https://meta.discourse.org/u/John_Smith3)\
**回覆:** 3\
**Last updated:** [2019年九月4日 11:31 UTC](https://meta.discourse.org/t/www-example-com-ok-but-example-com-not/127583 "2019-09-04T11:31:20Z")

</div>

Aloha！ 当我在浏览器中输入 www.mydomain.com 时，它会跳转到我的 Discourse 站点，但是当我输入 mydomain.com（不带 www.）时却不会。 我已完全按照 Discourse 的 GoDaddy 设置进行操作，有人能解释一下如何...

---

## [移除之前的 Discourse 安装并安装新版本](https://meta.discourse.org/t/removing-previous-discourse-install-and-installing-the-fresh-one/127508)

<div class="topic-metadata">

**Author:** [@Systmyz](https://meta.discourse.org/u/Systmyz)\
**回覆:** 8\
**Last updated:** [2019年九月4日 07:13 UTC](https://meta.discourse.org/t/removing-previous-discourse-install-and-installing-the-fresh-one/127508 "2019-09-04T07:13:58Z")

</div>

各位成员，大家好， 请指导如何移除之前的 Discourse 安装，以便我重新安装最新版本。 谢谢！

---

## [账户激活步骤无法工作](https://meta.discourse.org/t/account-activation-step-not-working/127097)

<div class="topic-metadata">

**Author:** [@9611838416m](https://meta.discourse.org/u/9611838416m)\
**回覆:** 2\
**Last updated:** [2019年九月4日 03:55 UTC](https://meta.discourse.org/t/account-activation-step-not-working/127097 "2019-09-04T03:55:50Z")

</div>

您好， 我刚启动了一个新实例并安装了 Discourse。一切顺利，我也收到了用于验证管理员账户的邮件。但是，点击邮件中发送的链接后，我进入了 em…

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

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