# 确保即使终端会话结束重建也能继续（nohup）

**URL:** https://meta.discourse.org/t/ensuring-rebuild-continues-even-if-terminal-session-ends-nohup/407839
**Category:** Support
**Created:** [2026年七月16日 20:40 UTC](https://meta.discourse.org/t/ensuring-rebuild-continues-even-if-terminal-session-ends-nohup/407839 "2026-07-16T20:40:16Z")
**Posts on this page:** 1
**Showing post:** 1

<div class="post-metadata">

### Author: ![Jonathan5](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jonathan5/32/197134_2.png) [@Jonathan5](https://meta.discourse.org/u/Jonathan5)
#### Post date: [2026年七月16日 20:40 UTC](https://meta.discourse.org/t/ensuring-rebuild-continues-even-if-terminal-session-ends-nohup/407839/1 "2026-07-16T20:40:17Z")

</div>

目前，在通过命令行获取备份并运行 `cleanup` 后，我会输入以下命令：

```plaintext
./launcher rebuild mail-receiver 2>&1 | tee ~/$(date +%Y-%m-%d)-rebuild-mail-receiver.log
./launcher rebuild app 2>&1 | tee ~/$(date +%Y-%m-%d)-rebuild-app.log

```

我对 `nohup` 有些印象。使用它会有好处吗？如果有，我该如何修改这些命令？如果没有，有什么其他建议吗？谢谢。

---

_[View the full topic](https://meta.discourse.org/t/ensuring-rebuild-continues-even-if-terminal-session-ends-nohup/407839)._
