# Discourse 宕机。更新了证书，重建了应用，但仍然无法工作

**URL:** <https://meta.discourse.org/t/discourse-down-updated-certificate-rebuilt-app-but-still-not-working/300569>\
**Category:** Self-hosting\
**Tags:** two-container\
**Created:** [2024 年3 月 22 日 17:48 UTC](https://meta.discourse.org/t/discourse-down-updated-certificate-rebuilt-app-but-still-not-working/300569 "2024-03-22T17:48:47Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

作者： ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
发布日期： [2024 年3 月 22 日 19:04 UTC](https://meta.discourse.org/t/discourse-down-updated-certificate-rebuilt-app-but-still-not-working/300569/7 "2024-03-22T19:04:12Z")

</div>

> [@WesPenre](#):
>
> 那么我应该用 Digital Ocean 更新这个并要求增加内存吗？

您可以调整您的 droplet。

> [@WesPenre](#):
>
> 最后： “添加 SWAP”是什么意思？它是如何工作的。

Swap 是将硬盘的一部分用作内存。您应该已经有一些了。

```plaintext
free -h

```

将显示您的内存和 swap。

discourse-setup 通过以下方式添加一个 2gb 的 swap 分区：

```plaintext
      install -o root -g root -m 0600 /dev/null /swapfile
      fallocate -l 2G /swapfile
      mkswap /swapfile
      swapon /swapfile
      echo "/swapfile swap swap auto 0 0" | tee -a /etc/fstab
      sysctl -w vm.swappiness=10

```

您可能已经有 2GB 了，需要增加它。一种简单的方法是再次执行这些步骤，但将 `swapfile` 更改为 `swapfile2`。

如果您感到沮丧并想用钱解决问题，请查看我的个人资料。

---

_[View the full topic](https://meta.discourse.org/t/discourse-down-updated-certificate-rebuilt-app-but-still-not-working/300569)._
