# 如何关闭我的论坛？

**URL:** https://meta.discourse.org/t/how-can-i-turn-off-my-forum/154082
**Category:** Support
**Created:** [2020年六月7日 10:06 UTC](https://meta.discourse.org/t/how-can-i-turn-off-my-forum/154082 "2020-06-07T10:06:04Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Aiden12114](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/aiden12114/32/177928_2.png) [@Aiden12114](https://meta.discourse.org/u/Aiden12114)
#### Post date: [2020年六月7日 10:06 UTC](https://meta.discourse.org/t/how-can-i-turn-off-my-forum/154082/1 "2020-06-07T10:06:04Z")

</div>

我在想如何关闭我的论坛，因为我需要进行一些维护，并且不希望任何人访问它。

编辑：我无法关闭我的 VPS，因为我在上面托管了两个 Discord 机器人。

---

<div class="post-metadata">

### Author: ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)
#### Post date: [2020年六月7日 10:08 UTC](https://meta.discourse.org/t/how-can-i-turn-off-my-forum/154082/2 "2020-06-07T10:08:00Z")

</div>

您可以：

1. 将其设置为只读模式 - `admin > backups > enable read only mode`  
或者
2. 关闭 Discourse 容器 `./launcher stop app`

---

<div class="post-metadata">

### Author: ![Aiden12114](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/aiden12114/32/177928_2.png) [@Aiden12114](https://meta.discourse.org/u/Aiden12114)
#### Post date: [2020年六月7日 10:08 UTC](https://meta.discourse.org/t/how-can-i-turn-off-my-forum/154082/3 "2020-06-07T10:08:50Z")

</div>

我尝试了 `./launcher stop app`，但似乎不起作用，所以我将尝试另一种方法。

---

<div class="post-metadata">

### Author: ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)
#### Post date: [2020年六月7日 10:09 UTC](https://meta.discourse.org/t/how-can-i-turn-off-my-forum/154082/4 "2020-06-07T10:09:48Z")

</div>

你在使用 `./launcher stop app` 时具体遇到了什么问题？你必须在 Discourse 的工作目录 `/var/discourse` 中执行该操作。

---

<div class="post-metadata">

### Author: ![Aiden12114](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/aiden12114/32/177928_2.png) [@Aiden12114](https://meta.discourse.org/u/Aiden12114)
#### Post date: [2020年六月7日 10:10 UTC](https://meta.discourse.org/t/how-can-i-turn-off-my-forum/154082/5 "2020-06-07T10:10:22Z")

</div>

我确实这么做了，但运行该命令后，网站似乎仍然处于运行状态。

---

<div class="post-metadata">

### Author: ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)
#### Post date: [2020年六月7日 10:33 UTC](https://meta.discourse.org/t/how-can-i-turn-off-my-forum/154082/6 "2020-06-07T10:33:11Z")

</div>

容器关闭大约需要 1 分钟，之后应会离线。

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [2020年七月7日 10:39 UTC](https://meta.discourse.org/t/how-can-i-turn-off-my-forum/154082/7 "2020-07-07T10:39:26Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
