# Self-hosting

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

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

**Page:** 121

---

## [FYI：AWS t2.micro 实例太小，至少使用 t2.small](https://meta.discourse.org/t/fyi-aws-t2-micro-instance-is-too-small-use-t2-small-at-least/77969)

<div class="topic-metadata">

**Author:** [@geek](https://meta.discourse.org/u/geek)\
**回覆:** 8\
**Last updated:** [2019年五月4日 16:02 UTC](https://meta.discourse.org/t/fyi-aws-t2-micro-instance-is-too-small-use-t2-small-at-least/77969 "2019-05-04T16:02:21Z")

</div>

此信息仅供将来参考。 我们正将基础设施从 Linode 迁移到 AWS，由于我们的论坛流量不大，我们认为尝试 s…是合理的。

---

## [有人能分享如何在与 Discourse 相同的服务器上配置电子邮件的步骤吗](https://meta.discourse.org/t/can-someon-share-a-steps-how-to-configurate-email-from-same-server-as-discourse/116676)

<div class="topic-metadata">

**Author:** [@savas](https://meta.discourse.org/u/savas)\
**回覆:** 7\
**Last updated:** [2019年五月2日 10:58 UTC](https://meta.discourse.org/t/can-someon-share-a-steps-how-to-configurate-email-from-same-server-as-discourse/116676 "2019-05-02T10:58:41Z")

</div>

有人可以分享如何在与 Discourse 相同的服务器上配置电子邮件的步骤吗？

---

## [专业版还是商务版定价方案？](https://meta.discourse.org/t/pro-or-business-pricing-plan/116581)

<div class="topic-metadata">

**Author:** [@lyyfeb707](https://meta.discourse.org/u/lyyfeb707)\
**回覆:** 3\
**Last updated:** [2019年五月2日 12:47 UTC](https://meta.discourse.org/t/pro-or-business-pricing-plan/116581 "2019-05-02T12:47:52Z")

</div>

每月20万页面浏览量适合哪种定价方案？标准版还是商务版？谢谢。

---

## [Discourse 在引导后运行失败](https://meta.discourse.org/t/discourse-failed-to-run-after-bootstrap/116656)

<div class="topic-metadata">

**Author:** [@jim380](https://meta.discourse.org/u/jim380)\
**回覆:** 2\
**Last updated:** [2019年五月2日 07:42 UTC](https://meta.discourse.org/t/discourse-failed-to-run-after-bootstrap/116656 "2019-05-02T07:42:03Z")

</div>

在引导完成后，无法通过域名在浏览器中访问 Discourse。 日志：run-parts: 正在执行 /etc/runit/1.d/00-ensure-links run-parts: 正在执行 /etc/r - Pastebin.com 任何帮助都将不胜感激……

---

## [Repairing damaged post\_search\_data (unable to create database dumps and execute search reindex)](https://meta.discourse.org/t/repairing-damaged-post-search-data-unable-to-create-database-dumps-and-execute-search-reindex/57046)

<div class="topic-metadata">

**Author:** [@skriesch](https://meta.discourse.org/u/skriesch)\
**回覆:** 11\
**Last updated:** [2017年二月13日 14:23 UTC](https://meta.discourse.org/t/repairing-damaged-post-search-data-unable-to-create-database-dumps-and-execute-search-reindex/57046 "2017-02-13T14:23:48Z")

</div>

The table post\_search\_data is damaged. I tried to repair it on different ways: using rake search:reindex: Output: root@xxx:/var/www/discourse# rake search:reindex Reindexing ‘default’ Posts: rake aborted! PG::In…

---

## [REDIS 交换内存问题](https://meta.discourse.org/t/redis-swap-memory-problems/116429)

<div class="topic-metadata">

**Author:** [@pgr](https://meta.discourse.org/u/pgr)\
**回覆:** 2\
**Last updated:** [2019年四月30日 14:08 UTC](https://meta.discourse.org/t/redis-swap-memory-problems/116429 "2019-04-30T14:08:10Z")

</div>

您好。我刚刚在服务器上运行了一个大型导入任务（Docker 标准安装，两周前更新），目前正准备将其投入生产环境。 导入过程顺利进行，直到更新回复计数时，它失败了…

---

## [启动器引导/运行可重复吗？](https://meta.discourse.org/t/is-launcher-bootstrap-run-repeatable/116282)

<div class="topic-metadata">

**Author:** [@russellwstanley](https://meta.discourse.org/u/russellwstanley)\
**回覆:** 4\
**Last updated:** [2019年四月29日 20:02 UTC](https://meta.discourse.org/t/is-launcher-bootstrap-run-repeatable/116282 "2019-04-29T20:02:10Z")

</div>

我的问题是： 如果我在修订版 A 处签出 discourse\_docker，并在时间 T1 运行 \`launcher bootstrap web\_only\` 和 \`launcher run web\_only\`，然后在时间 T2 再次运行完全相同的命令，我会得到相同的……

---

## [哪些设置可以在不重新构建容器的情况下进行配置？](https://meta.discourse.org/t/which-settings-can-be-configured-without-a-container-rebuild/116266)

<div class="topic-metadata">

**Author:** [@russellwstanley](https://meta.discourse.org/u/russellwstanley)\
**回覆:** 2\
**Last updated:** [2019年四月29日 19:31 UTC](https://meta.discourse.org/t/which-settings-can-be-configured-without-a-container-rebuild/116266 "2019-04-29T19:31:40Z")

</div>

嗨， 关于将同一个 Discourse 镜像部署到多个环境（如预发布、测试、生产等）的可能性，我有一个快速的问题。 我希望在我的 CI/CD 管道中构建一次 Discourse 镜像，然后推送该镜像……

---

## [简化版 Discourse 安装？](https://meta.discourse.org/t/simplified-discourse-install/116238)

<div class="topic-metadata">

**Author:** [@BjornW](https://meta.discourse.org/u/BjornW)\
**回覆:** 2\
**Last updated:** [2019年四月29日 16:10 UTC](https://meta.discourse.org/t/simplified-discourse-install/116238 "2019-04-29T16:10:48Z")

</div>

我按照 discourse/discourse 仓库 main 分支下的 discourse/docs/INSTALL-cloud.md 指南安装了 Discourse，整个过程相当直接。不过，我现在正在构建一个自动化安装方案，以适配我们的其他...

---

## [未捕获的 TypeError: 无法读取 undefined 的属性 'val' Url](https://meta.discourse.org/t/uncaught-typeerror-cannot-read-property-val-of-undefined-url/115846)

<div class="topic-metadata">

**Author:** [@eextra](https://meta.discourse.org/u/eextra)\
**回覆:** 1\
**Last updated:** [2019年四月29日 02:41 UTC](https://meta.discourse.org/t/uncaught-typeerror-cannot-read-property-val-of-undefined-url/115846 "2019-04-29T02:41:47Z")

</div>

尝试与 www.domain/logs 和控制台建立友好连接。 全新测试安装，未安装任何插件或主题（仅安装了 mail-receiver）。 我想询问这些错误意味着什么。 未捕获的类型错误…

---

## [Discourse binding to IPv6...but not IPv4](https://meta.discourse.org/t/discourse-binding-to-ipv6-but-not-ipv4/56821)

<div class="topic-metadata">

**Author:** [@Wes\_Fisher](https://meta.discourse.org/u/Wes_Fisher)\
**回覆:** 4\
**Last updated:** [2017年二月3日 01:20 UTC](https://meta.discourse.org/t/discourse-binding-to-ipv6-but-not-ipv4/56821 "2017-02-03T01:20:00Z")

</div>

I successfully installed Discourse on my server, and it’s accessible over ipv6, but not ipv4. Ideally I’d like it to listen on both 6 and 4. This is what netstat presents. netstat -tunpl Active Internet connections (on…

---

## [无法理解多站点问题](https://meta.discourse.org/t/having-problems-understanding-multisite/116130)

<div class="topic-metadata">

**Author:** [@Pilvinen](https://meta.discourse.org/u/Pilvinen)\
**回覆:** 2\
**Last updated:** [2019年四月27日 20:15 UTC](https://meta.discourse.org/t/having-problems-understanding-multisite/116130 "2019-04-27T20:15:19Z")

</div>

我已经搜索了几天谷歌上的操作指南，也阅读了普遍推荐的教程，但感觉它们并没有太大帮助。我在计算机领域已经从事相关工作超过30年，必须说安装Doc…

---

## [回滚升级](https://meta.discourse.org/t/rollback-upgrades/116074)

<div class="topic-metadata">

**Author:** [@eatcodetravel](https://meta.discourse.org/u/eatcodetravel)\
**回覆:** 12\
**Last updated:** [2019年四月26日 17:27 UTC](https://meta.discourse.org/t/rollback-upgrades/116074 "2019-04-26T17:27:26Z")

</div>

昨天我在进行常规升级时，./launch rebuild 命令未能完成。我本以为如果通过 ./launch start 启动旧容器，网站会像以前一样恢复，但它始终未能上线，红…

---

## [Digital Ocean Now allow to install discourse with one click](https://meta.discourse.org/t/digital-ocean-now-allow-to-install-discourse-with-one-click/73005)

<div class="topic-metadata">

**Author:** [@burningman](https://meta.discourse.org/u/burningman)\
**回覆:** 3\
**Last updated:** [2019年四月20日 14:42 UTC](https://meta.discourse.org/t/digital-ocean-now-allow-to-install-discourse-with-one-click/73005 "2019-04-20T14:42:38Z")

</div>

Today, when I want to install discourse on my other website, I found that DigitalOcean now allow user to install Discourse in One-Click App. Only interested in knowing, what way should I use to install discourse as I ca…

---

## [一个设置中的三个站点](https://meta.discourse.org/t/three-sites-in-one-setup/115990)

<div class="topic-metadata">

**Author:** [@Silvanus](https://meta.discourse.org/u/Silvanus)\
**回覆:** 3\
**Last updated:** [2019年四月26日 01:20 UTC](https://meta.discourse.org/t/three-sites-in-one-setup/115990 "2019-04-26T01:20:04Z")

</div>

我成功从我的两个简单机器论坛创建了 Discourse 备份，它们一直保存在我的硬盘上。（指的是我们两个较旧的论坛。）我想改变这一情况，以便我们拥有两个存档……

---

## [邮件故障排查问题](https://meta.discourse.org/t/issues-troubleshooting-email/116016)

<div class="topic-metadata">

**Author:** [@MST2](https://meta.discourse.org/u/MST2)\
**回覆:** 14\
**Last updated:** [2019年四月25日 22:53 UTC](https://meta.discourse.org/t/issues-troubleshooting-email/116016 "2019-04-25T22:53:48Z")

</div>

因此，我已安装 Discourse，但遇到了邮件相关的问题。我使用的是 SparkPost，并遵循了该指南。现在我使用了故障排查指南，在需要检查 Discourse 日志的部分……

---

## [在主机上也运行 nginx 时频繁出现 nginx 速率限制](https://meta.discourse.org/t/frequent-nginx-rate-limiting-with-nginx-also-on-the-host/115885)

<div class="topic-metadata">

**Author:** [@ChrisBeach](https://meta.discourse.org/u/ChrisBeach)\
**回覆:** 6\
**Last updated:** [2019年四月24日 18:40 UTC](https://meta.discourse.org/t/frequent-nginx-rate-limiting-with-nginx-also-on-the-host/115885 "2019-04-24T18:40:16Z")

</div>

继续讨论“保护 Discourse 免受大量请求的最佳免费方案”： 看起来这些“请求过多”错误在我的论坛上仍然频繁出现（我认为我并没有遭受 DDoS 攻击）： …

---

## [有东西占用了端口 80，导致我无法安装](https://meta.discourse.org/t/something-is-occupying-port-80-so-i-can-t-install/115635)

<div class="topic-metadata">

**Author:** [@Parminio](https://meta.discourse.org/u/Parminio)\
**回覆:** 13\
**Last updated:** [2019年四月22日 16:49 UTC](https://meta.discourse.org/t/something-is-occupying-port-80-so-i-can-t-install/115635 "2019-04-22T16:49:31Z")

</div>

长话短说：我想在 Ubuntu 18.04 上部署 Discourse。我已安装并运行了 Docker 应用程序。当我尝试安装 Discourse 时，遇到了许多人都会遇到的“端口 80 被占用”错误…

---

## [How Exactly should I add cloudflare CDN to discourse?](https://meta.discourse.org/t/how-exactly-should-i-add-cloudflare-cdn-to-discourse/55706)

<div class="topic-metadata">

**Author:** [@azaleas](https://meta.discourse.org/u/azaleas)\
**回覆:** 5\
**Last updated:** [2017年一月13日 17:04 UTC](https://meta.discourse.org/t/how-exactly-should-i-add-cloudflare-cdn-to-discourse/55706 "2017-01-13T17:04:54Z")

</div>

I’ve been trying to add cloudflare cdn to my discourse forum. Couldnt find any direct tutorials or faqs. I added my domain to cloudflare, configured the cdn option, got my cloudflare name servers and then changed my digi…

---

## [Syntax error in my YAML file](https://meta.discourse.org/t/syntax-error-in-my-yaml-file/55048)

<div class="topic-metadata">

**Author:** [@itamerlanium](https://meta.discourse.org/u/itamerlanium)\
**回覆:** 7\
**Last updated:** [2017年一月13日 11:00 UTC](https://meta.discourse.org/t/syntax-error-in-my-yaml-file/55048 "2017-01-13T11:00:56Z")

</div>

Does anyone knows what could cause this issue by rebuilding app? Last login: Mon Jan 2 03:50:07 2017 from 122.60.253.1 root@organic:~# cd /var/discourse root@organic:/var/discourse# ./launcher rebuild app E…

---

## [如何在本地主机上嵌入讨论？](https://meta.discourse.org/t/how-to-embed-discussions-on-localhost/103896)

<div class="topic-metadata">

**Author:** [@colobot88](https://meta.discourse.org/u/colobot88)\
**回覆:** 2\
**Last updated:** [2019年四月19日 17:14 UTC](https://meta.discourse.org/t/how-to-embed-discussions-on-localhost/103896 "2019-04-19T17:14:46Z")

</div>

你好， 我的环境配置如下： - 在 Windows 10 上安装并运行了 Ubuntu（Linux）。 - Discourse 正在该 Linux 系统上运行，可通过“localhost:9292”访问。 - 一个 Web 应用（React）也运行在该 Linux 机器上……

---

## [Discourse 账户激活 - 不安全页面错误](https://meta.discourse.org/t/discourse-account-activation-insecure-page-error/115285)

<div class="topic-metadata">

**Author:** [@rajesh.saharan](https://meta.discourse.org/u/rajesh.saharan)\
**回覆:** 4\
**Last updated:** [2019年四月17日 12:03 UTC](https://meta.discourse.org/t/discourse-account-activation-insecure-page-error/115285 "2019-04-17T12:03:53Z")

</div>

我已在子域名上安装了 Discourse，该子域名使用 Cloudflare DNS 和灵活 SSL。 问题在于安装后管理员账户的激活。我收到的激活 URL 是“http”协议，当我打开它时，浏览器…

---

## [Unicorn.conf.rb attach account](https://meta.discourse.org/t/unicorn-conf-rb-attach-account/54643)

<div class="topic-metadata">

**Author:** [@Hotfirenet](https://meta.discourse.org/u/Hotfirenet)\
**回覆:** 6\
**Last updated:** [2017年一月5日 07:18 UTC](https://meta.discourse.org/t/unicorn-conf-rb-attach-account/54643 "2017-01-05T07:18:40Z")

</div>

Hello, Why the processes are attached to my personal account ? johan 123738 0.0 0.2 41852 4488 ? S déc.21 0:22 /bin/bash config/unicorn\_launcher -E production -c config/unicorn.conf.rb johan 123756 0…

---

## [创建 PostgreSQL 用户时出错](https://meta.discourse.org/t/getting-error-while-creating-postgress-create-user/115224)

<div class="topic-metadata">

**Author:** [@Kids\_Unleashed](https://meta.discourse.org/u/Kids_Unleashed)\
**回覆:** 5\
**Last updated:** [2019年四月17日 02:11 UTC](https://meta.discourse.org/t/getting-error-while-creating-postgress-create-user/115224 "2019-04-17T02:11:24Z")

</div>

createuser：无法连接到数据库 postgres：无法连接到服务器：没有这样的文件或目录 服务器是否在本地运行，并接受 Unix 域套接字“/var/run/postgresql/.s.PGSQL.543…"上的连接？

---

## [SSL 代理出现 SSL 问题](https://meta.discourse.org/t/ssl-problem-with-ssl-proxy/115092)

<div class="topic-metadata">

**Author:** [@Torwald](https://meta.discourse.org/u/Torwald)\
**回覆:** 4\
**Last updated:** [2019年四月15日 23:48 UTC](https://meta.discourse.org/t/ssl-problem-with-ssl-proxy/115092 "2019-04-15T23:48:38Z")

</div>

您好！ 我已在 Discourse 之前安装了 NGINX 反向代理，用于管理证书，因此用户通过安全的 HTTPS 连接访问 Discourse。 然而，某些模板文件（如图标）的下载...

---

## [最大上传大小设置？](https://meta.discourse.org/t/max-upload-size-setting/106204)

<div class="topic-metadata">

**Author:** [@RobMeade](https://meta.discourse.org/u/RobMeade)\
**回覆:** 9\
**Last updated:** [2019年四月15日 20:27 UTC](https://meta.discourse.org/t/max-upload-size-setting/106204 "2019-04-15T20:27:17Z")

</div>

我刚刚看到了 2.0.0.beta 4 的变更/功能列表，注意到可以区分用户上传文件和员工上传文件。这让我有些兴奋，并想知道是否有相关的选项来设置…

---

## [WordPress WP Discourse 迁移](https://meta.discourse.org/t/wordpress-wp-discourse-migration/114925)

<div class="topic-metadata">

**Author:** [@lyyfeb707](https://meta.discourse.org/u/lyyfeb707)\
**回覆:** 5\
**Last updated:** [2019年四月15日 03:11 UTC](https://meta.discourse.org/t/wordpress-wp-discourse-migration/114925 "2019-04-15T03:11:02Z")

</div>

假设性地，我能否将我的 WordPress WP Discourse 论坛迁移到 Discourse Standard（100 美元/月）？谢谢。

---

## [如何禁用来自特定 IP 地址以外的访问](https://meta.discourse.org/t/how-to-disable-access-to-anyone-not-coming-from-a-specific-ip-address/114907)

<div class="topic-metadata">

**Author:** [@sat](https://meta.discourse.org/u/sat)\
**回覆:** 8\
**Last updated:** [2019年四月13日 17:08 UTC](https://meta.discourse.org/t/how-to-disable-access-to-anyone-not-coming-from-a-specific-ip-address/114907 "2019-04-13T17:08:11Z")

</div>

我希望在 Discourse 论坛准备就绪之前阻止访问，但希望仅允许少数几个 IP 地址访问，以便我们的团队可以开展工作。 我知道可以启用以下选项，但我希望我们的团队能够…

---

## [1GB 警告过于粗糙](https://meta.discourse.org/t/1gb-warning-is-too-course-grained/114721)

<div class="topic-metadata">

**Author:** [@jamesh](https://meta.discourse.org/u/jamesh)\
**回覆:** 3\
**Last updated:** [2019年四月11日 23:36 UTC](https://meta.discourse.org/t/1gb-warning-is-too-course-grained/114721 "2019-04-11T23:36:59Z")

</div>

我们运行的是2台t3.micro实例（AWS 1GB VPS）作为仅用于Web的Discourse实例，并配有独立的PostgreSQL和Redis服务器（即总共4GB内存），但Discourse频繁向我发送警告，提示内存不足，因为在单核…

---

## [尝试重建时出现 Bootstrap 错误](https://meta.discourse.org/t/bootstrap-error-when-trying-to-rebuild/114797)

<div class="topic-metadata">

**Author:** [@fidelio](https://meta.discourse.org/u/fidelio)\
**回覆:** 6\
**Last updated:** [2019年四月11日 20:29 UTC](https://meta.discourse.org/t/bootstrap-error-when-trying-to-rebuild/114797 "2019-04-11T20:29:50Z")

</div>

我在 Digital Ocean 上安装的 Discourse 表现非常奇怪。虽然它仍在正常运行，但我无法再通过 SSH 执行任何操作。当我尝试进入容器时，会收到容器未运行的错误。 ……

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

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