# 新手从 2.4.0.beta7 更新到 2.7.0.beta7

**URL:** <https://meta.discourse.org/t/n00b-updating-from-2-4-0-beta7-to-2-7-0-beta7/189996>\
**Category:** Self-hosting\
**Created:** [2021年五月11日 03:36 UTC](https://meta.discourse.org/t/n00b-updating-from-2-4-0-beta7-to-2-7-0-beta7/189996 "2021-05-11T03:36:18Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Benjamin\_D](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/benjamin_d/32/277831_2.png) [@Benjamin\_D](https://meta.discourse.org/u/Benjamin_D)\
**Post date:** [2021年五月11日 04:08 UTC](https://meta.discourse.org/t/n00b-updating-from-2-4-0-beta7-to-2-7-0-beta7/189996/2 "2021-05-11T04:08:51Z")

</div>

> [@Duane](#):
>
> 我会先进行备份……

务必进行备份。即使一切看似正常，如果你拥有相关的 VPS 功能，或许可以打个主机快照 😅，因为肯定会有数据库更新需要执行。万一出现问题，这通常比从备份恢复更简单（顺便一提，恢复过程本身也值得练习）。作为额外的预防措施，复制一份 app.yml 文件，并记下你当前所在提交的 SHA 值，如何？

从 2.4 升级到 2.7，如果我没记错的话，会涉及一些 PostgreSQL 的更新。不妨先浏览一下这些内容作为热身：[Search results for 'postgresql update' - Discourse Meta](https://meta.discourse.org/search?q=postgresql%20update) 🙂

> [@Duane](#):
>
> 站点会自动离线吗？

是的，在重建期间容器会被停止。

> [@Duane](#):
>
> 系统会自动向用户生成相关通知吗？

没有，至少默认情况下不会。

> [@Add an offline page to display when Discourse is rebuilding or starting up](https://meta.discourse.org/t/adding-an-offline-page-when-rebuilding/45238):
>
> warning This guide is intended for advanced users, who are already using nginx outside the docker container. By following this guide you make your setup more complicated and will lose some speed benefits like HTTP2 if you’re not running Ubuntu 16.04 or later. Proceed with caution! When Discourse is rebuilding or starting up, your users will usually either see an error message from their browser… …or a not-so-nice 502 error message from Nginx: If you’re a perfectionist …

---

_[View the full topic](https://meta.discourse.org/t/n00b-updating-from-2-4-0-beta7-to-2-7-0-beta7/189996)._
