# Self-hosting

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

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

**Page:** 136

---

## [最低配置要求与竞争对手对比](https://meta.discourse.org/t/minimum-requirements-vs-competitors/79420)

<div class="topic-metadata">

**Author:** [@tsaukpaetra](https://meta.discourse.org/u/tsaukpaetra)\
**回覆:** 10\
**Last updated:** [2018年一月31日 08:43 UTC](https://meta.discourse.org/t/minimum-requirements-vs-competitors/79420 "2018-01-31T08:43:42Z")

</div>

我在几个话题中看到过类似讨论，但我想确认一下我的理解是否正确。 我想为我的 YouTube 频道（规模非常小）的讨论区托管 Discourse，作为现代化的论坛前端。

---

## [Discourse 域名显示错误 403 - 禁止访问](https://meta.discourse.org/t/discourse-domain-showing-error-403-forbidden/79391)

<div class="topic-metadata">

**Author:** [@sfzeller](https://meta.discourse.org/u/sfzeller)\
**回覆:** 4\
**Last updated:** [2018年一月30日 21:34 UTC](https://meta.discourse.org/t/discourse-domain-showing-error-403-forbidden/79391 "2018-01-30T21:34:08Z")

</div>

决定选择 Discourse 作为我们的论坛，并在 Digital Ocean 上注册了账户。我已成功在该服务器上安装了 Docker 和 Discourse，但域名“discourse.dynomotion.com”显示 u…

---

## [Can't install Discourse with only 10 GB disk, run out of space](https://meta.discourse.org/t/cant-install-discourse-with-only-10-gb-disk-run-out-of-space/29149)

<div class="topic-metadata">

**Author:** [@hedgehog](https://meta.discourse.org/u/hedgehog)\
**回覆:** 42\
**Last updated:** [2017年九月6日 10:38 UTC](https://meta.discourse.org/t/cant-install-discourse-with-only-10-gb-disk-run-out-of-space/29149 "2017-09-06T10:38:48Z")

</div>

I’m trying to set up Discourse via Docker installation on a ovh.com VPS (VPS Classic 1, 10 GB HDD, 1 GB RAM). Sadly during bootstrapping Discourse at some point I always get no space left on device. Before bootstrappin…

---

## [如何在托管服务器上安装 Discourse？](https://meta.discourse.org/t/how-to-install-discourse-on-hosting/79286)

<div class="topic-metadata">

**Author:** [@savas](https://meta.discourse.org/u/savas)\
**回覆:** 11\
**Last updated:** [2018年一月30日 14:32 UTC](https://meta.discourse.org/t/how-to-install-discourse-on-hosting/79286 "2018-01-30T14:32:47Z")

</div>

你好，我喜欢你们的社区，我决定在自己的服务器上运行 Discourse，但安装过程让我很困惑。我正在使用 CentOS，有人能帮忙吗？ 卡在以下提示： \[root@server public\_html\]# ./discourse-setup which: no docker.io in (/sbin:/bin…

---

## [无域名与 Discourse](https://meta.discourse.org/t/no-domain-name-and-discourse/79323)

<div class="topic-metadata">

**Author:** [@fredkgb](https://meta.discourse.org/u/fredkgb)\
**回覆:** 1\
**Last updated:** [2018年一月29日 23:35 UTC](https://meta.discourse.org/t/no-domain-name-and-discourse/79323 "2018-01-29T23:35:17Z")

</div>

按照本教程 discourse/docs/INSTALL-cloud.md at main · discourse/discourse · GitHub 进行操作。 我没有域名，只有一台托管在云端的 VPS，并拥有一个 IP 地址。 作为主机名，我可以输入 IP 地址吗……

---

## [Docker 在 VMWare 中 - 如何访问 Discourse](https://meta.discourse.org/t/docker-in-vmware-how-to-access-to-discourse/79211)

<div class="topic-metadata">

**Author:** [@fredkgb](https://meta.discourse.org/u/fredkgb)\
**回覆:** 4\
**Last updated:** [2018年一月29日 22:57 UTC](https://meta.discourse.org/t/docker-in-vmware-how-to-access-to-discourse/79211 "2018-01-29T22:57:21Z")

</div>

我已在 VMware 上的 Ubuntu 16.04 中使用 Docker 安装并配置了 Discourse，但在浏览器中输入 VM 的 IP 地址后，却无法看到 Discourse 首页。

---

## [头像和表情包的网址在域名末尾加上:80](https://meta.discourse.org/t/urls-for-avatars-emoticons-adding-80-to-the-end-of-the-domain/79090)

<div class="topic-metadata">

**Author:** [@merefield](https://meta.discourse.org/u/merefield)\
**回覆:** 19\
**Last updated:** [2018年一月28日 23:51 UTC](https://meta.discourse.org/t/urls-for-avatars-emoticons-adding-80-to-the-end-of-the-domain/79090 "2018-01-28T23:51:25Z")

</div>

伙计们， 我遇到一个问题，某些头像在你们引用某人发的帖子时缺失。 在调查中我注意到，某些头像的图片URL中每个域名后面都加了‘:80’，但并非所有的都是这样。……

---

## [无法安装 Discourse？](https://meta.discourse.org/t/unable-to-install-discourse/79196)

<div class="topic-metadata">

**Author:** [@Rapid\_Lemon](https://meta.discourse.org/u/Rapid_Lemon)\
**回覆:** 10\
**Last updated:** [2018年一月28日 13:13 UTC](https://meta.discourse.org/t/unable-to-install-discourse/79196 "2018-01-28T13:13:31Z")

</div>

\[图片\]

---

## [Apache 和 Discourse](https://meta.discourse.org/t/apache-and-discourse/79134)

<div class="topic-metadata">

**Author:** [@Oussema\_Tayzon](https://meta.discourse.org/u/Oussema_Tayzon)\
**回覆:** 1\
**Last updated:** [2018年一月27日 02:46 UTC](https://meta.discourse.org/t/apache-and-discourse/79134 "2018-01-27T02:46:04Z")

</div>

大家好，我想在运行 Discourse 的同时也运行 Apache，因为我还想运行另一个 PHP 脚本。有人有主意吗？

---

## [Device docker0 does not exist](https://meta.discourse.org/t/device-docker0-does-not-exist/57633)

<div class="topic-metadata">

**Author:** [@m1raz](https://meta.discourse.org/u/m1raz)\
**回覆:** 18\
**Last updated:** [2018年一月25日 22:25 UTC](https://meta.discourse.org/t/device-docker0-does-not-exist/57633 "2018-01-25T22:25:46Z")

</div>

Configuration file at containers/app.yml updated successfully! Device "docker0" does not exist. Cannot connect to the docker daemon - verify it is running and you have access After installing SMTP appers this. What I c…

---

## [How to resolve the warning message?](https://meta.discourse.org/t/how-to-resolve-the-warning-message/36048)

<div class="topic-metadata">

**Author:** [@doudou](https://meta.discourse.org/u/doudou)\
**回覆:** 1\
**Last updated:** [2015年十一月26日 11:58 UTC](https://meta.discourse.org/t/how-to-resolve-the-warning-message/36048 "2015-11-26T11:58:56Z")

</div>

The ./launcher logs app shows warnings: 42:M 26 Nov 09:22:44.646 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128. rsyslogd: invalid…

---

## [全新安装无法使用](https://meta.discourse.org/t/fresh-install-does-not-work/78754)

<div class="topic-metadata">

**Author:** [@nokizorque](https://meta.discourse.org/u/nokizorque)\
**回覆:** 7\
**Last updated:** [2018年一月23日 15:17 UTC](https://meta.discourse.org/t/fresh-install-does-not-work/78754 "2018-01-23T15:17:25Z")

</div>

你好， 我正准备在一台全新安装的 Ubuntu 16.04.3 系统上部署 Discourse，同时也会全新安装 Docker。此前我从未安装过这两者。该机器配备 2GB 内存（应该足够……

---

## [Error on Fresh install: MiniRacer::RuntimeError: ReferenceError: setTimeout is not defined](https://meta.discourse.org/t/error-on-fresh-install-miniracer-runtimeerror-referenceerror-settimeout-is-not-defined/77663)

<div class="topic-metadata">

**Author:** [@Ori\_Pekelman](https://meta.discourse.org/u/Ori_Pekelman)\
**回覆:** 12\
**Last updated:** [2018年一月23日 09:02 UTC](https://meta.discourse.org/t/error-on-fresh-install-miniracer-runtimeerror-referenceerror-settimeout-is-not-defined/77663 "2018-01-23T09:02:14Z")

</div>

For the life of me I can’t get it to install. Everything is fine. But when I try to run migrations I get MiniRacer::RuntimeError: ReferenceError: setTimeout is not defined JavaScript at \<anonymous\>:4927:23 JavaScript at…

---

## [CDN 和多站点](https://meta.discourse.org/t/cdn-and-multisite/78693)

<div class="topic-metadata">

**Author:** [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**回覆:** 2\
**Last updated:** [2018年一月23日 00:55 UTC](https://meta.discourse.org/t/cdn-and-multisite/78693 "2018-01-23T00:55:55Z")

</div>

看起来所有多站点主机都共享同一个 DISCOURSE\_CDN\_URL。是否有某种机制让它们能够共享同一个区域？

---

## [Docker 在 Mac 上安装失败，无法更新 app.yml](https://meta.discourse.org/t/docker-install-mac-fails-to-update-app-yml/71300)

<div class="topic-metadata">

**Author:** [@Bas](https://meta.discourse.org/u/Bas)\
**回覆:** 9\
**Last updated:** [2018年一月22日 18:45 UTC](https://meta.discourse.org/t/docker-install-mac-fails-to-update-app-yml/71300 "2018-01-22T18:45:51Z")

</div>

按照教程逐字操作（跳过 letsencrypt）后在 Mac OS Sierra 上运行 ./discourse-setup 时出现以下错误 有人知道原因吗？ DISCOURSE\_SMTP\_PORT 更改失败。 DISCOURSE\_SMTP\_…

---

## [阿里云产品与服务](https://meta.discourse.org/t/alibaba-cloud-offering/78495)

<div class="topic-metadata">

**Author:** [@8BIT](https://meta.discourse.org/u/8BIT)\
**回覆:** 1\
**Last updated:** [2018年一月19日 18:35 UTC](https://meta.discourse.org/t/alibaba-cloud-offering/78495 "2018-01-19T18:35:49Z")

</div>

我刚收到这个，价格很有竞争力。我还没深入研究，但即使是他们的基础套餐，定价也比 Digital Ocean 的入门级 Droplet 更便宜。 只是把它放在这里，供大家参考！我…

---

## [Offline Install](https://meta.discourse.org/t/offline-install/17827)

<div class="topic-metadata">

**Author:** [@Ajedi32](https://meta.discourse.org/u/Ajedi32)\
**回覆:** 10\
**Last updated:** [2018年一月19日 18:32 UTC](https://meta.discourse.org/t/offline-install/17827 "2018-01-19T18:32:23Z")

</div>

Is there currently an easy way to install Discourse offline, or from behind a firewall which doesn’t allow internet access? From what I’ve seen of discourse\_docker’s Dockerfile, it looks like the default install method i…

---

## [Can't restore from backup](https://meta.discourse.org/t/cant-restore-from-backup/59043)

<div class="topic-metadata">

**Author:** [@staticfloat](https://meta.discourse.org/u/staticfloat)\
**回覆:** 12\
**Last updated:** [2018年一月16日 10:06 UTC](https://meta.discourse.org/t/cant-restore-from-backup/59043 "2018-01-16T10:06:46Z")

</div>

Hello there, I have a backup from a hosted discourse instance that I’m trying to move to a privately-hosted instance, and I’m running into errors while attempting to restore the backed up configuration from the original…

---

## [Nginx / letsencrypt / docker -- Ubuntu 16.04](https://meta.discourse.org/t/nginx-letsencrypt-docker-ubuntu-16-04/77926)

<div class="topic-metadata">

**Author:** [@dbm](https://meta.discourse.org/u/dbm)\
**回覆:** 5\
**Last updated:** [2018年一月13日 13:26 UTC](https://meta.discourse.org/t/nginx-letsencrypt-docker-ubuntu-16-04/77926 "2018-01-13T13:26:26Z")

</div>

托管：DigitalOcean。 参考了 DigitalOcean 上的所有指南，用于安装和配置 NGINX 与 Let's Encrypt 集成。 已成功运行 HTTPS - https://hkh.pm/ 但最终出现 502 错误网关 …

---

## [连接已超时](https://meta.discourse.org/t/the-connection-has-timed-out/77930)

<div class="topic-metadata">

**Author:** [@akhil](https://meta.discourse.org/u/akhil)\
**回覆:** 11\
**Last updated:** [2018年一月13日 16:43 UTC](https://meta.discourse.org/t/the-connection-has-timed-out/77930 "2018-01-13T16:43:05Z")

</div>

您好， 安装 Discourse 后，我在浏览器中收到“连接已超时”的错误提示。 IP：http://159.89.193.78/ 我使用的是 Digital Ocean 的一键应用。 注意：在安装 Discourse 之前，我能够...

---

## [更新错误，网站不可用，可能与插件有关？](https://meta.discourse.org/t/update-error-website-unavailable-possibly-plugin-related/77843)

<div class="topic-metadata">

**Author:** [@aarska](https://meta.discourse.org/u/aarska)\
**回覆:** 2\
**Last updated:** [2018年一月12日 16:38 UTC](https://meta.discourse.org/t/update-error-website-unavailable-possibly-plugin-related/77843 "2018-01-12T16:38:39Z")

</div>

大家好， 我遇到了一个问题……首先，我不是专家，请大家多多包涵。 我尝试通过界面升级 Discourse，然后当我尝试升级插件时，出现了以下内容： \<html\>\<head\>\</head\>\<body\> \<h2\>您正在运行…

---

## [How to increase site speed](https://meta.discourse.org/t/how-to-increase-site-speed/60791)

<div class="topic-metadata">

**Author:** [@Alavi1412](https://meta.discourse.org/u/Alavi1412)\
**回覆:** 30\
**Last updated:** [2018年一月9日 23:59 UTC](https://meta.discourse.org/t/how-to-increase-site-speed/60791 "2018-01-09T23:59:27Z")

</div>

Our site’s speed is very low, we have disabled widgets and extra JavaScript codes but still site has a very low speed, we have scanned our site but the scanner told has to fix some emberjs codes and we don’t want to modi…

---

## [Pre-Built Theme?](https://meta.discourse.org/t/pre-built-theme/77507)

<div class="topic-metadata">

**Author:** [@fazzio349](https://meta.discourse.org/u/fazzio349)\
**回覆:** 7\
**Last updated:** [2018年一月9日 12:12 UTC](https://meta.discourse.org/t/pre-built-theme/77507 "2018-01-09T12:12:11Z")

</div>

Discourse lists a bunch of websites on their customers page that use this theme layout: https://discuss.codecademy.com/. Is this a pre-built theme somewhere I can upload and customize?

---

## [Discourse web interface becomes unresponsive a few minutes after starting](https://meta.discourse.org/t/discourse-web-interface-becomes-unresponsive-a-few-minutes-after-starting/76643)

<div class="topic-metadata">

**Author:** [@Tsirist](https://meta.discourse.org/u/Tsirist)\
**回覆:** 34\
**Last updated:** [2018年一月8日 09:31 UTC](https://meta.discourse.org/t/discourse-web-interface-becomes-unresponsive-a-few-minutes-after-starting/76643 "2018-01-08T09:31:49Z")

</div>

I recently tried to update Discourse via the Docker Manager plugin’s interface but have run into some problems. Initially, Discourse was running but there were updates available, and it had been a month or two since I’d…

---

## [我们的Discourse被中国防火长城屏蔽，有什么建议吗？](https://meta.discourse.org/t/our-discourse-is-blocked-by-the-great-firewall-of-china-any-tips/67423)

<div class="topic-metadata">

**Author:** [@singmajesty](https://meta.discourse.org/u/singmajesty)\
**回覆:** 5\
**Last updated:** [2018年一月8日 01:56 UTC](https://meta.discourse.org/t/our-discourse-is-blocked-by-the-great-firewall-of-china-any-tips/67423 "2018-01-08T01:56:53Z")

</div>

Hello everyone, We have developer forums hosted in Discourse, and it is currently blocked (by timeout) by The Great Firewall of China, or so I think. I was concerned that Akismet or some other behavior in Discourse co…

---

## [Failed to execute postMessage on DOMWindow: The target origin provided does not match](https://meta.discourse.org/t/failed-to-execute-postmessage-on-domwindow-the-target-origin-provided-does-not-match/77260)

<div class="topic-metadata">

**Author:** [@Ingo\_Karstein](https://meta.discourse.org/u/Ingo_Karstein)\
**回覆:** 6\
**Last updated:** [2018年一月5日 20:27 UTC](https://meta.discourse.org/t/failed-to-execute-postmessage-on-domwindow-the-target-origin-provided-does-not-match/77260 "2018-01-05T20:27:19Z")

</div>

Hi all, I try to solve this error since two days but with no success. I use Discourse 2.0 (today) and used 1.9.x (yesterday). I have a Ubuntu server with docker on it. On the host I run nginx as reverse proxy with SS…

---

## [443 address already in use? Letencrypt](https://meta.discourse.org/t/443-address-already-in-use-letencrypt/77149)

<div class="topic-metadata">

**Author:** [@Oudamseth\_Samin](https://meta.discourse.org/u/Oudamseth_Samin)\
**回覆:** 5\
**Last updated:** [2018年一月3日 09:53 UTC](https://meta.discourse.org/t/443-address-already-in-use-letencrypt/77149 "2018-01-03T09:53:45Z")

</div>

It used to work before on port 80 with my other website. I don’t remember how I set it up exactly but now I follow guide to setup Let’s encrypt and it only make change to like 3 line and when I run ./launcher rebuild app…

---

## ["stable" branch will not downgrade - fails on db:migrate](https://meta.discourse.org/t/stable-branch-will-not-downgrade-fails-on-db-migrate/77049)

<div class="topic-metadata">

**Author:** [@Philip\_Colmer](https://meta.discourse.org/u/Philip_Colmer)\
**回覆:** 6\
**Last updated:** [2018年一月2日 13:39 UTC](https://meta.discourse.org/t/stable-branch-will-not-downgrade-fails-on-db-migrate/77049 "2018-01-02T13:39:30Z")

</div>

I’m trying to set up a new installation of Discourse using the stable branch. The installation completes successfully if I leave app.yml set to “tests-passed”. However, if I change that to stable and rebuild, it fails wi…

---

## [Cheap Docker hosting?](https://meta.discourse.org/t/cheap-docker-hosting/44262)

<div class="topic-metadata">

**Author:** [@markofthedesert](https://meta.discourse.org/u/markofthedesert)\
**回覆:** 37\
**Last updated:** [2018年一月2日 10:23 UTC](https://meta.discourse.org/t/cheap-docker-hosting/44262 "2018-01-02T10:23:32Z")

</div>

Hey folks! Apologies if this has been covered, I haven’t found a clear answer. Admittedly, I am a Docker newb. I am doing some volunteer work for a non-profit on a shoestring budget with a small user base that really l…

---

## [Discourse\_docker redis overcommit\_memory](https://meta.discourse.org/t/discourse-docker-redis-overcommit-memory/29676)

<div class="topic-metadata">

**Author:** [@devura](https://meta.discourse.org/u/devura)\
**回覆:** 6\
**Last updated:** [2018年一月2日 00:41 UTC](https://meta.discourse.org/t/discourse-docker-redis-overcommit-memory/29676 "2018-01-02T00:41:55Z")

</div>

discourse docker image spouts out some error when creating. WARNING overcommit\_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit\_memory = 1' to /etc/sysctl.con…

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

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