# Self-hosting

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

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

**Page:** 145

---

## [忽略目录'/etc/apt/apt.conmf.d/'中的文件'50unattended-upgrades.wcf-dist'，因为它的文件名扩展名无效](https://meta.discourse.org/t/ignoring-file-50unattended-upgrades-wcf-dist-in-directory-etc-apt-apt-conmf-d-as-it-has-an-invalid-filename-extension/57650)

<div class="topic-metadata">

**Author:** [@zcalbrecht](https://meta.discourse.org/u/zcalbrecht)\
**回覆:** 18\
**Last updated:** [2017年二月20日 22:40 UTC](https://meta.discourse.org/t/ignoring-file-50unattended-upgrades-wcf-dist-in-directory-etc-apt-apt-conmf-d-as-it-has-an-invalid-filename-extension/57650 "2017-02-20T22:40:16Z")

</div>

论坛宕机了，当我尝试升级 Docker 时出现以下错误： \[image\] ./launcher rebuild app 也不起作用，因为它曾经导致论坛崩溃（可能是一次错误的升级流程？）。我担心……

---

## [FATAL: the database system is starting up](https://meta.discourse.org/t/fatal-the-database-system-is-starting-up/52806)

<div class="topic-metadata">

**Author:** [@zsero](https://meta.discourse.org/u/zsero)\
**回覆:** 8\
**Last updated:** [2017年二月20日 16:39 UTC](https://meta.discourse.org/t/fatal-the-database-system-is-starting-up/52806 "2017-02-20T16:39:12Z")

</div>

I’m getting this on a pure Ubuntu 14.04 LTS host, discourse: stable, when running ./launcher rebuild app. A week ago the same rebuild was working OK, and I didn’t change anything. Ensuring launcher is up to date Fetchin…

---

## [Update took quite long due to Vacuum](https://meta.discourse.org/t/update-took-quite-long-due-to-vacuum/56203)

<div class="topic-metadata">

**Author:** [@rsoutar](https://meta.discourse.org/u/rsoutar)\
**回覆:** 7\
**Last updated:** [2017年二月20日 01:09 UTC](https://meta.discourse.org/t/update-took-quite-long-due-to-vacuum/56203 "2017-02-20T01:09:07Z")

</div>

Hi, I was running an update using ./launcher rebuild app But it stuck at 156:M 23 Jan 10:19:31.078 \* 10 changes in 300 seconds. Saving... 156:M 23 Jan 10:19:31.081 \* Background saving started by pid 3150 3150:C 23 Jan 1…

---

## [Where to set DNS Configuration?](https://meta.discourse.org/t/where-to-set-dns-configuration/57530)

<div class="topic-metadata">

**Author:** [@Gina\_Patterson](https://meta.discourse.org/u/Gina_Patterson)\
**回覆:** 2\
**Last updated:** [2017年二月17日 08:37 UTC](https://meta.discourse.org/t/where-to-set-dns-configuration/57530 "2017-02-17T08:37:23Z")

</div>

Got Discourse installed (yay me!) at http://107.170.201.40/. How do I get it to come up at http://discourse.bite-nutrition.com/ ? I know I have to do something with my DNS settings but I don’t know what/where to do that. …

---

## [Installation on bluehost cloud server?](https://meta.discourse.org/t/installation-on-bluehost-cloud-server/57487)

<div class="topic-metadata">

**Author:** [@Gina\_Patterson](https://meta.discourse.org/u/Gina_Patterson)\
**回覆:** 9\
**Last updated:** [2017年二月17日 03:09 UTC](https://meta.discourse.org/t/installation-on-bluehost-cloud-server/57487 "2017-02-17T03:09:14Z")

</div>

I currently have a shared hosting account with Bluehost. I’d like to install Discourse, and understand I need at least the VPN account: Is a Bluehost Cloud account an option? http://cloud.bluehost.com/products/cloud…

---

## [No longer seeing .../finish-installation/register](https://meta.discourse.org/t/no-longer-seeing-finish-installation-register/56951)

<div class="topic-metadata">

**Author:** [@tophee](https://meta.discourse.org/u/tophee)\
**回覆:** 4\
**Last updated:** [2017年二月13日 15:55 UTC](https://meta.discourse.org/t/no-longer-seeing-finish-installation-register/56951 "2017-02-13T15:55:42Z")

</div>

I installed discourse yesterday but stopped the process at the …/finish-installation/register screen because I wanted to go ahead and install wordpress first. Today I wanted to come back to disourse and finish the instal…

---

## [Installed without error but site wont come up](https://meta.discourse.org/t/installed-without-error-but-site-wont-come-up/57277)

<div class="topic-metadata">

**Author:** [@rhotimee](https://meta.discourse.org/u/rhotimee)\
**回覆:** 12\
**Last updated:** [2017年二月13日 09:27 UTC](https://meta.discourse.org/t/installed-without-error-but-site-wont-come-up/57277 "2017-02-13T09:27:08Z")

</div>

Discourse was installed without error, but the browser displays : This site can’t provide a secure connection. I think its Lets Encrypt thats causing this. How can i rectify this issue ?

---

## [恢复员工类别](https://meta.discourse.org/t/reinstate-staff-category/52232)

<div class="topic-metadata">

**Author:** [@lxk](https://meta.discourse.org/u/lxk)\
**回覆:** 2\
**Last updated:** [2017年二月12日 17:05 UTC](https://meta.discourse.org/t/reinstate-staff-category/52232 "2017-02-12T17:05:25Z")

</div>

简短而又愚蠢，我们的员工类别早已被删除，有没有（非备份）的方法恢复这个或手动重新创建？我能从原始备份中挤回表格吗？ 自动化的 nginx 报告已经……

---

## [Setting up a cluster?](https://meta.discourse.org/t/setting-up-a-cluster/23032)

<div class="topic-metadata">

**Author:** [@yanosz](https://meta.discourse.org/u/yanosz)\
**回覆:** 4\
**Last updated:** [2017年二月12日 05:42 UTC](https://meta.discourse.org/t/setting-up-a-cluster/23032 "2017-02-12T05:42:39Z")

</div>

Hei folks, I’d like to setup a cluster (two nodes running discourse) for high availibitly and load balancing. How do setup such a cluster? Thanks, Jan

---

## [How should Discourse System Market itself?](https://meta.discourse.org/t/how-should-discourse-system-market-itself/57221)

<div class="topic-metadata">

**Author:** [@xiasummer](https://meta.discourse.org/u/xiasummer)\
**回覆:** 11\
**Last updated:** [2017年二月11日 03:24 UTC](https://meta.discourse.org/t/how-should-discourse-system-market-itself/57221 "2017-02-11T03:24:45Z")

</div>

It seems that someone is trying to popularize the forums based on discourse. What’s this company? Who is marketing?

---

## [Email not sending out after installation. I need help please](https://meta.discourse.org/t/email-not-sending-out-after-installation-i-need-help-please/57211)

<div class="topic-metadata">

**Author:** [@elmurph](https://meta.discourse.org/u/elmurph)\
**回覆:** 17\
**Last updated:** [2017年二月10日 23:23 UTC](https://meta.discourse.org/t/email-not-sending-out-after-installation-i-need-help-please/57211 "2017-02-10T23:23:46Z")

</div>

I think I have just reached my highest level of frustration with configuring mailgun :frowning:. Please I need help. This is my problem: I installed discourse successfully after several failed attempt with configuring …

---

## [Setting up discourse on my own](https://meta.discourse.org/t/setting-up-discourse-on-my-own/57134)

<div class="topic-metadata">

**Author:** [@Thomas\_Ralph1](https://meta.discourse.org/u/Thomas_Ralph1)\
**回覆:** 7\
**Last updated:** [2017年二月8日 17:35 UTC](https://meta.discourse.org/t/setting-up-discourse-on-my-own/57134 "2017-02-08T17:35:39Z")

</div>

Hi on Saturday I will be setting up discourse on my own through OceanDrop. I need some advice on setting it up. Also how do I create a mail server. (I have looked through the tutorials and still have no clue) Thanks Th…

---

## [I Have an Issue With Swap File (2GB) During Installation](https://meta.discourse.org/t/i-have-an-issue-with-swap-file-2gb-during-installation/57028)

<div class="topic-metadata">

**Author:** [@elmurph](https://meta.discourse.org/u/elmurph)\
**回覆:** 8\
**Last updated:** [2017年二月7日 03:28 UTC](https://meta.discourse.org/t/i-have-an-issue-with-swap-file-2gb-during-installation/57028 "2017-02-07T03:28:35Z")

</div>

Hello, I am currently having issues with the last step of discourse installation. I got this reply from my from ssh client while trying to enter " ./discourse-setup" Please what should I do?

---

## [Benchmarks: VPS vs dedicated/bare metal?](https://meta.discourse.org/t/benchmarks-vps-vs-dedicated-bare-metal/56908)

<div class="topic-metadata">

**Author:** [@ljpp](https://meta.discourse.org/u/ljpp)\
**回覆:** 4\
**Last updated:** [2017年二月6日 06:53 UTC](https://meta.discourse.org/t/benchmarks-vps-vs-dedicated-bare-metal/56908 "2017-02-06T06:53:03Z")

</div>

Lately I have been planning one potential Discourse case, where big resources will be needed. I am well aware of the benefits in virtualization, but for this particular case I find a dedicated server an interesting optio…

---

## [Issue with mail after install](https://meta.discourse.org/t/issue-with-mail-after-install/56930)

<div class="topic-metadata">

**Author:** [@chagara](https://meta.discourse.org/u/chagara)\
**回覆:** 5\
**Last updated:** [2017年二月6日 00:52 UTC](https://meta.discourse.org/t/issue-with-mail-after-install/56930 "2017-02-06T00:52:47Z")

</div>

Hello, I just installed discourse in DO and I’m having issues sending email: This is what I see in the logs: Processing by Admin::EmailController#index as JSON Parameters: {"\_"=\>"1486273924108"} Completed 200 OK in 1…

---

## [Database wont migrate Discourse](https://meta.discourse.org/t/database-wont-migrate-discourse/56902)

<div class="topic-metadata">

**Author:** [@mrabalogu](https://meta.discourse.org/u/mrabalogu)\
**回覆:** 1\
**Last updated:** [2017年二月4日 12:49 UTC](https://meta.discourse.org/t/database-wont-migrate-discourse/56902 "2017-02-04T12:49:55Z")

</div>

I am new to Discourse and I am looking to make a forum.. I cloned the discourse repo and “bundle install worked” but “bundle exec rake db:migrate” keeps throwing an error. Would appreciate a better approach to hosting di…

---

## [Net::ReadTimeout when sending email after install](https://meta.discourse.org/t/net-readtimeout-when-sending-email-after-install/56856)

<div class="topic-metadata">

**Author:** [@gpson](https://meta.discourse.org/u/gpson)\
**回覆:** 2\
**Last updated:** [2017年二月3日 14:17 UTC](https://meta.discourse.org/t/net-readtimeout-when-sending-email-after-install/56856 "2017-02-03T14:17:38Z")

</div>

The Problem I get the error on first registration: tail -f /var/discourse/shared/standalone/log/rails/production.log Sent mail to robotas@magveda.lt (61113.9ms) Job exception: Net::ReadTimeout What I tried I received…

---

## [How to Set Up SSL in Discourse](https://meta.discourse.org/t/how-to-set-up-ssl-in-discourse/56577)

<div class="topic-metadata">

**Author:** [@kushagraasati](https://meta.discourse.org/u/kushagraasati)\
**回覆:** 1\
**Last updated:** [2017年一月30日 12:29 UTC](https://meta.discourse.org/t/how-to-set-up-ssl-in-discourse/56577 "2017-01-30T12:29:38Z")

</div>

can you tell the full process of setting up ssl

---

## [Discourse 仅通过 IP 地址访问](https://meta.discourse.org/t/discourse-is-only-accessible-by-ip-address/56622)

<div class="topic-metadata">

**Author:** [@railsnoob](https://meta.discourse.org/u/railsnoob)\
**回覆:** 4\
**Last updated:** [2017年一月31日 00:21 UTC](https://meta.discourse.org/t/discourse-is-only-accessible-by-ip-address/56622 "2017-01-31T00:21:13Z")

</div>

我的讨论区只允许通过IP地址访问，而不是forum.example.com 在这篇帖子中，Jeff Atwood 表示： 请不要链接到建议人们将他们的DNS服务器设置为DigitalOcean的建议。那是…

---

## [502 Bad Gateway，突然发生](https://meta.discourse.org/t/502-bad-gateway-suddenly/55956)

<div class="topic-metadata">

**Author:** [@Vereos](https://meta.discourse.org/u/Vereos)\
**回覆:** 9\
**Last updated:** [2017年一月25日 15:38 UTC](https://meta.discourse.org/t/502-bad-gateway-suddenly/55956 "2017-01-25T15:38:01Z")

</div>

你好。昨天我的Discourse论坛运行正常：它在Digital Ocean机器上已经成功运行了一年多，我从未遇到过问题。昨天睡觉之前，我检查了我的论坛……

---

## [Images and jquery\_include.js 404ing on finish installation screen (subfolder install)](https://meta.discourse.org/t/images-and-jquery-include-js-404ing-on-finish-installation-screen-subfolder-install/54473)

<div class="topic-metadata">

**Author:** [@naomi](https://meta.discourse.org/u/naomi)\
**回覆:** 8\
**Last updated:** [2017年一月25日 01:07 UTC](https://meta.discourse.org/t/images-and-jquery-include-js-404ing-on-finish-installation-screen-subfolder-install/54473 "2017-01-25T01:07:17Z")

</div>

Hi, I’m having the same issue, on the finish installation screen: https://meta.discourse.org/t/subfolder-support-with-docker/30507/10 The styles & js file load fine, but the images (tada.svg, etc) and the jquery\_includ…

---

## [无法按照官方指引安装Discourse](https://meta.discourse.org/t/unable-to-install-discourse-following-the-official-instructions/56157)

<div class="topic-metadata">

**Author:** [@pablostarter](https://meta.discourse.org/u/pablostarter)\
**回覆:** 3\
**Last updated:** [2017年一月22日 15:50 UTC](https://meta.discourse.org/t/unable-to-install-discourse-following-the-official-instructions/56157 "2017-01-22T15:50:10Z")

</div>

嗨， 我正在按照提供的说明将Discourse安装到VPS中，但按照步骤操作完毕后，当我尝试访问网站时，服务器没有响应。 我花了昨天的时间继续尝试……

---

## [升级discourse从1.7时出现错误](https://meta.discourse.org/t/error-when-upgrading-discourse-from-1-7/56135)

<div class="topic-metadata">

**Author:** [@wil93](https://meta.discourse.org/u/wil93)\
**回覆:** 3\
**Last updated:** [2017年一月21日 23:13 UTC](https://meta.discourse.org/t/error-when-upgrading-discourse-from-1-7/56135 "2017-01-21T23:13:01Z")

</div>

由于遇到编码问题，我跳过了升级数据库，因此使用了『templates/postgres.9.3.template.yml』而不是『templates/postgres.template.yml』。现在当我尝试重新构建时，得到的是： 以下软件包…

---

## [Slow (over 3 sec) SQL query](https://meta.discourse.org/t/slow-over-3-sec-sql-query/56051)

<div class="topic-metadata">

**Author:** [@TomekB](https://meta.discourse.org/u/TomekB)\
**回覆:** 4\
**Last updated:** [2017年一月20日 21:10 UTC](https://meta.discourse.org/t/slow-over-3-sec-sql-query/56051 "2017-01-20T21:10:27Z")

</div>

I’m trying to optimize a multi-docker Discourse instance for a forum with over 3M posts. Once loaded, Disourse is quite fast. Problem is that the first page load (or full F5 refresh) takes 4-5 seconds. There is one SQ…

---

## [Not quite dev, not quite production](https://meta.discourse.org/t/not-quite-dev-not-quite-production/56026)

<div class="topic-metadata">

**Author:** [@JagWaugh](https://meta.discourse.org/u/JagWaugh)\
**回覆:** 4\
**Last updated:** [2017年一月19日 18:10 UTC](https://meta.discourse.org/t/not-quite-dev-not-quite-production/56026 "2017-01-19T18:10:36Z")

</div>

I have a VM installation with Ubuntu 16.04 docker standalone per: discourse/docs/INSTALL-cloud.md at main · discourse/discourse · GitHub I use this as a sandbox to try various things out rather than experimenting around…

---

## [Replace hook in container is ignored when updating using docker\_manager](https://meta.discourse.org/t/replace-hook-in-container-is-ignored-when-updating-using-docker-manager/56014)

<div class="topic-metadata">

**Author:** [@rriemann](https://meta.discourse.org/u/rriemann)\
**回覆:** 1\
**Last updated:** [2017年一月19日 18:01 UTC](https://meta.discourse.org/t/replace-hook-in-container-is-ignored-when-updating-using-docker-manager/56014 "2017-01-19T18:01:24Z")

</div>

Hello, I have the following hook in my discourse yml container config: hooks: after\_code: - replace: global: true filename: /var/www/discourse/app/controllers/users\_controller.rb from: /^.…

---

## [我的更新似乎出了问题](https://meta.discourse.org/t/something-seems-to-have-gone-wrong-with-my-update/55952)

<div class="topic-metadata">

**Author:** [@peternlewis](https://meta.discourse.org/u/peternlewis)\
**回覆:** 13\
**Last updated:** [2017年一月18日 10:40 UTC](https://meta.discourse.org/t/something-seems-to-have-gone-wrong-with-my-update/55952 "2017-01-18T10:40:55Z")

</div>

我的1.7.x（https://forum.keyboardmaestro.com/）更新似乎失败了，什么都没有显示出来，我收到类似这样的错误： \[图像\] 我在想是不是更新中途失败的。 有任何建议……

---

## [Docker install: Module aufs not found - again](https://meta.discourse.org/t/docker-install-module-aufs-not-found-again/55760)

<div class="topic-metadata">

**Author:** [@brahn](https://meta.discourse.org/u/brahn)\
**回覆:** 12\
**Last updated:** [2017年一月15日 07:47 UTC](https://meta.discourse.org/t/docker-install-module-aufs-not-found-again/55760 "2017-01-15T07:47:35Z")

</div>

Following the guide, I have tried at both SF and NYC regions with ubuntu 16.04 and cannot get past installing docker without first following the recommendations from this old topic. sudo apt-get install lxc wget bsdtar …

---

## [NGINX proxy in front of the Docker container.errors](https://meta.discourse.org/t/nginx-proxy-in-front-of-the-docker-container-errors/55668)

<div class="topic-metadata">

**Author:** [@Jeremiah\_Schultz](https://meta.discourse.org/u/Jeremiah_Schultz)\
**回覆:** 3\
**Last updated:** [2017年一月14日 11:28 UTC](https://meta.discourse.org/t/nginx-proxy-in-front-of-the-docker-container-errors/55668 "2017-01-14T11:28:38Z")

</div>

follwing the directions here: Run other websites on the same machine as Discourse Have the following errors: nginx: \[warn\] invalid parameter “spdy”: ngx\_http\_spdy\_module was superseded by ngx\_http\_v2\_module in /etc/ng…

---

## [Email problems with new domain](https://meta.discourse.org/t/email-problems-with-new-domain/55673)

<div class="topic-metadata">

**Author:** [@azaleas](https://meta.discourse.org/u/azaleas)\
**回覆:** 5\
**Last updated:** [2017年一月14日 10:52 UTC](https://meta.discourse.org/t/email-problems-with-new-domain/55673 "2017-01-14T10:52:53Z")

</div>

I finally had a chance to install discourse. I got stuck on smtp stage of installation for couple of hours. I tried using all suggested email providers but no luck. Sendgrid wasn’t totally free. Mailgun I couldn’t even g…

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

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