# 确保即使终端会话结束重建也能继续（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:** 2

<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:** [2026年七月16日 20:48 UTC](https://meta.discourse.org/t/ensuring-rebuild-continues-even-if-terminal-session-ends-nohup/407839/2 "2026-07-16T20:48:16Z")

</div>

与其使用老派的 `nohup`，不如改用 `tmux`（我的最爱）或 `screen`。我认为 `screen` 以前更普及，但我相当确定 `tmux` 现在基本随处可见。

如果会话断开连接，你可以重新通过 SSH 登录，并使用 `tmux attach` 重新连接。它还有一个好处，就是允许多人同时查看同一个终端。

---

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