# 初学者安装 Discourse 但愿意成为社区一员

**URL:** <https://meta.discourse.org/t/discourse-installation-for-beginners-but-are-willing-to-be-part-of-the-community/128633>\
**Category:** Self-hosting\
**Created:** [2019 年9 月 15 日 16:55 UTC](https://meta.discourse.org/t/discourse-installation-for-beginners-but-are-willing-to-be-part-of-the-community/128633 "2019-09-15T16:55:13Z")\
**Posts on this page:** 1\
**Showing post:** 57

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [2019 年9 月 17 日 18:29 UTC](https://meta.discourse.org/t/discourse-installation-for-beginners-but-are-willing-to-be-part-of-the-community/128633/57 "2019-09-17T18:29:42Z")

</div>

> [@Earlie](#):
>
> 当我输入这个命令 ```  
> wget -qO- [https://get.docker.com/](https://get.docker.com/) | sh  
> 字符“|”在 Digital Ocean 控制台中变成了“\>”！  
> 有什么建议可以正确输入“|”吗？

你不需要使用那个命令，因为 `discourse-setup` 会自动完成。

> [@Earlie](#):
>
> 这
> 
> ![image.png](https://cdck-file-uploads-global.s3.dualstack.us-west-2.amazonaws.com/meta/original/3X/e/a/ea786f2ce0cbfd083e2af7a51f1d2bc4a791c476.png)
> 
> 是否意味着要运行这个命令，“mkdir /var/discourse”？

你不需要手动创建 `/var/discourse`，因为 `git clone https://github.com/discourse/discourse_docker.git /var/discourse` 命令会在目录不存在时自动创建它。

我已在以下 PR 中更新了说明：

> <https://github.com/discourse/discourse/pull/8102>
>
> \`discourse-setup\` will install Docker. Several people lately have had trouble wi…th a \`|\` getting turned into a \`\>\` when trying to \`curl\` the site into \`sh\`.
> 
> Also, the recommended \`git clone\` command will create \`/var/discourse\`, so don't tell people to make that directory, as that too can be confusing.

> [@Earlie](#):
>
> 我最终可以安装它，但没有 SSL，即使输入了 letsencrypt 的邮箱，安装也没有成功完成！

有人建议你可能在 Discourse 前面使用了 Cloudflare（橙色云朵已开启）。是这样吗？请仅将 Cloudflare 用于 DNS，否则会导致问题。

也许 INSTALL-cloud 和/或 `discourse-setup` 也应该对此发出警告。

---

_[View the full topic](https://meta.discourse.org/t/discourse-installation-for-beginners-but-are-willing-to-be-part-of-the-community/128633)._
