且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在 shell 中运行命令并在关闭会话时继续运行该命令

更新时间:2023-11-30 11:19:52

nohupdisownscreen都不错,但是screen 是***的,因为与其他两个不同,screen 允许您断开与远程服务器的连接,保持一切运行,然后稍后重新连接以查看发生了什么.使用 nohupdisown 您无法恢复交互.

nohup, disown, and screen are all good but screen is the best because unlike the other two, screen allows you to disconnect from the remote server, keep everything running, and then reconnect later to see what is happening. With nohup and disown you can't resume interacting.