自托用户推荐的托管服务提供商

本指南面向非系统管理员、仅希望让 Discourse 正常运行的用户。以下列出了被认为可靠且易于新手快速部署的云托管服务,所需折腾最少。您应该能够创建账户并搭建运行 Discourse 实例的服务器,整个过程在 30 分钟左右即可完成。

我已在上述每个服务上安装了 Discourse,收到了来自 Discourse 的邮件,并使用该邮件以管理员身份登录。对于所有这些服务,标准的安装云指南都能正常工作。

关于 AWS、Azure 和 Google Cloud?

如果您已经花费大量时间使用 bash,了解端口 80、443 和 22 的含义,并熟悉防火墙、分区以及 S3 存储桶的概念,那么这些服务都能很好地运行。如果您从未通过 Stack Exchange 找到过问题的解决方案,那么您可能应该避开这些提供商。它们是托管界中挑剔的高性能跑车。本指南旨在帮助您找到更像本田思域而非 F1 赛车的服务。

关于 OtherGreatService?

简单且可靠

下表提供了这些易用提供商的比较。“构建时间”列是以下命令的结果:

time ./launcher rebuild app

这并非有意义的基准测试,而是粗略衡量 CPU、磁盘和网络速度的指标。您的实际体验可能有所不同。不过您可以看到,Digital Ocean 的“优化”实例的速度几乎是标准 1GB 实例的两倍。

提供商 价格 磁盘 CPU GB RAM 构建时间 数据中心
Digital Ocean 6 美元 25GB 1 1 10 分钟 美国 (2)、荷兰、新加坡、英国、德国、加拿大、印度、澳大利亚
DO 优化版 42 美元 25GB 2 4 5 分 47 秒 美国 (2)、荷兰、新加坡、英国、德国、加拿大、印度
Hetzner CX22 (x86) 3.95 欧元 40GB 2 4 9 分 56 秒 德国、芬兰、新加坡、美国 (2)
Hetzner CAX11 (arm64) 3.95 欧元 40GB 2 4 5 分 45 秒 德国、芬兰
Lightsail 10 美元 30GB 1 2 8 分 17 秒 美国 (3)、日本、新加坡、澳大利亚、印度
Linode 1024 5 美元 20GB 1 1 9 分 46 秒 美国 (3)、英国、德国、新加坡、日本
Scaleway 10 欧元 10GB 2 2 ---- 法国、波兰、荷兰
Upcloud 10 美元 30GB 1 2 7 分 22 秒 德国、芬兰、荷兰、日本、英国、美国
Vultr 5 美元 24GB 1 1 8 分钟 美国 (7)、荷兰、法国、德国、英国、日本、新加坡、澳大利亚

注意:构建时间取决于帖子数量、插件以及许多其他因素。您的网站规模越大,所需时间越长。

提供商说明

以下是关于各个提供商的说明。如果您在使用其中任何一家时有良好的体验,欢迎在此添加您的评论。如果您有负面评价,请以回复形式添加。

Amazon AWS/Lightsail

定价: https://aws.amazon.com/lightsail/pricing/

非常简单!点击按钮即可打开一个已登录 SSH 连接的窗口。

使用 ubuntu@hostname 而非 root@hostname。虽然这不是大多数网站的做法,但它与 AWS 一致,且安全性稍高。

Digital Ocean

定价: https://www.digitalocean.com/pricing/

这是最简单、最易用且使用最广泛的提供商,由于最近的价格下调,其竞争力再次提升。对于非美国用户来说,一个问题是他们有时会提高创建账户的难度,并阻止出站 SMTP 端口(我的标准安装脚本通过使用端口 2525 规避了此问题,Mailgun 和其他提供商均支持该端口)。

Hetzner

定价: https://www.hetzner.com/cloud#pricing

https://meta.discourse.org/t/hetzner-launches-a-vps-service/78759/6

Linode

https://www.linode.com/pricing

https://meta.discourse.org/t/suggestion-for-good-vps-to-host-discourse-digital-ocean-or-linode/8852/35?u=pfaffman

注意:删除自动创建的过小的交换空间。discourse-setup 将为您创建一个 2GB 的交换文件。

Scaleway

支持信用卡、借记卡和 SEPA 直接扣款。

Upcloud

https://www.upcloud.com/pricing/

创建账户和启动服务器过程中未遇到问题或挫折。

Vultr

https://www.vultr.com/pricing/

支持 PayPal、比特币和支付宝。

我在创建账户和进行安装过程中未遇到问题或挫折。

contabo.com

可能是这里最便宜的:4 核/4GB RAM/5.80 美元 + 税费。(截至 2025 年 3 月 10 日)

阿里云

简单应用服务器,价格:

关于 XXX?

如果您使用的提供商易于设置且运行可靠,欢迎留言推荐。或者,您也可以编辑此帖子以添加您自己的经验。

68 个赞

Great overview Jay, thanks! I did notice one thing though:

This comparison isn’t entirely fair; you’re comparing a 1 CPU/1GB droplet to a 2 CPU/4GB ‘optimized’ one. They also offer a $20/month regular droplet with 2 cpu’s and 4GB Ram - it would be interesting to see how this performs when compared to the optimized version.

3 个赞

It’s not intended to be.

Perhaps. My guess is that having more ram on the same slower processor as the 1GB droplet won’t make that much different on a build. Once someone gets to that point, though, this guide isn’t much help. If you have a huge database, an 8GB “slow” droplet might outperform a 4GB “fast” one. It’s not really a very useful statistic for the Real World.

5 个赞

It does, especially with 2GB or below.

1 个赞

Oh. Right! Because swap. Duh.

The point if this guide, though, is just to get people to be able to do an install, not to make decisions about whether this host or that host is better for their unique situation.

2 个赞

Not sure if this is super important, but it might be worth noting (especially for novices) that their support is available only during (German) office hours. (I don’t mean to discourage anyone from using them - I’m a happy Hetzner user myself - just an FYI.)

7 个赞

I am using UCloud(Hosting provider in China)
because I have coupon. it’s cheaper.
anyway, my point is I would post about UCloud hosting Discourse after using it for awhile.
in here & my blog. hope it can help other people.

3 个赞

I just did a rebuild (with multiple plugins installed) and it finished in pretty much exactly 7 minutes. Not sure where the variation comes from, but I thought I’d mention it cause that makes Hetzner even faster than UpCloud.

4 个赞

https://www.alibabacloud.com/product/ecs

$4.50

1 个赞

6 posts were split to a new topic: Set up some email

What does “optimized” means and how can we “optimize” our own servers?

Like we mention " Digital Ocean Optimized" instances in the table on the OP? That’s just marketing lingo for a CPU with usually 3.0GHz+ of clock speed. Like the AWS C5.large family.

9 个赞

I am on Ramnode. Rebuild time is 8m22.374s.

KVM (necessary to run docker), 2cpu 2.4GHz, 2GB ram + 4swap, 40GB ssd, $10 per month (12 for NVMe).

It has 1 datacenter in EU, 4 in US. Cpanel, reverse-dns, quick support team.
Recommended for those who like everything under control.

Currently my instance is running only for tests, so I cannot say yet, how stable it can be in production mode with a lot of users online.

7 个赞

I’ve just spun up a Discourse installation there in the last couple of weeks, but I’ve been using Contabo for other VPS needs for a bit over a year. Pricing starts at 3.99 EUR/mo for a “SSD-boosted” instance with two cores, 4 GB RAM, and 300 GB storage, or 4.99 EUR/mo for an all-SSD instance with four cores, 8 GB RAM, and 200 GB storage. Setup isn’t quite as quick as DO, but they’ll run any major Linux distro.

Rebuild time on my small SSD instance is 5 minutes, 1 sec.

11 个赞

Forgive me if this seems like a silly question, I definitely fall under this category:

I don’t know what I’m doiiiing! :tired_face: My head is spinning from even the minimal amount of info I’ve read here on meta!

Does Digital Ocean offer in-house server maintenance, management and backups? I’m referring to this post from a different topic.

Like, will those services be included in my plan if I self host with DO? Or will I have to seek someone like “Literate Computing, LLC” to help me manage my server instance with DO?

This whole realm of self hosting is completely mysterious to me, but I’d like to give it an honest consideration so I can confidently make a hosting decision by weighing the major pros/cons of Discourse hosting vs self hosting for my specific situation.

3 个赞

They do not. They provide a virtual machine. If it’s running, they are doing their job. They do provide backups of the entire virtual machine, which might be all you need.

If you want backups, updates, and someone to care if Discourse isn’t working, you want a hosted solution or to pay someone to manage your “self-hosted” site.

If you want to give self-hosting a try, you can always switch later unless something calamitous happens like you delete the droplet or lose control of your digital ocean account (I’ve never heard of either of those things happening).

5 个赞

Thank you for explaining this to me!

So, budget is kind of tight for me. Two questions:

1. Are the different package tiers still applicable if I wanted to self host?

All the site says is this:

Does this mean: Tier package price + installation fee?

Or is it just a flat rate of $99 for a one-size-fits-all Discourse instance and installation?


2. Is self hosting really cheaper?

This is the major deciding factor in making the decision to self host or not.

I will probably be more than fine going with the Basic tier instance for my community. Would the

  • time
  • money
  • and effort

of self hosting really contribute to the greater value of self hosting over a Discourse hosted instance?

2 个赞

If you’re that unsure, then just having Discourse-hosted site would probably be the best - and easiest for you. While that costs $99 for the installation (by Discourse) and $100/month, there is nothing for you to do regarding upgrades and backups. These are done by Discourse. Also, should any problems arise, Discourse will handle that. It is a “No worries” situation. You also get a 14-day free trial to decide if this is right for you.
On the other hand, if you don’t want to pay $100/month, you can have Discourse do the installation for you on Digital Ocean (DO) where Discourse will charge $99 installation and DO will charge you $5/month for hosting. But should any problems arise, you will be responsible to fix them. That’s why it says “this option is completely self-support after the initial install.” But this forum is always here to help as much as they can. :smiley:
If you were tech savvy enough, you could do the install yourself on a DO droplet and only pay the $5/month to DO. You still have to provide your own support.

That would depend upon you. If you have no idea as to what you are doing, or have a minimal knowledge of this, what you may save in monthly costs could later on cost you in something not working properly, downtime, aggravation, frustration, etc… And you could end up paying someone to fix things for you if you were unable to implement on your own any fixes suggestion on this forum.

If you know what you are doing, self-hosting is cheaper. If you don’t, self-hosting could be a mild nightmare. In my case, I was suddenly given just 3 weeks to come up with a forum to replace an existing one that was going to be shut down. After weighing the options, I went with the “no hassles” option of a Discourse-hosted forum. I bought the domain, Discourse did the install and maintains it. I just have to contend with the users. :slightly_smiling_face:

4 个赞

你需要考虑出现问题时会发生什么。在设置阶段,这并非大问题,但一旦你的论坛正式上线,停机就是坏消息。

只要没有问题,在 VPS 上自建托管 Discourse 对于预算紧张的情况来说性价比很高。但只需遇到一个问题,就可能消耗你 5 到 20 个小时的时间。那么,你的时间值多少钱?你的预算又有多紧张?你的解决方案将介于这两个参数之间。

我还建议你提前评估可能需要哪些插件,因为这可能带来潜在影响。插件似乎是自建托管者面临诸多棘手问题的根源,因此你可以通过回答以下问题来评估你的风险状况。风险越高,Discourse 托管服务就越具吸引力:

  • 我需要使用官方插件吗?低风险。
  • 我需要使用第三方插件(即非官方支持的)吗?高风险。
  • 这些第三方插件是否得到良好支持?中等风险。

不同提供商提供的 Discourse 托管方案部分基于预装插件的不同组合,例如:

9 个赞