在Linux中关闭SSH客户端后如何防止后台进程停止 [英] How to prevent a background process from being stopped after closing SSH client in Linux
本文介绍了在Linux中关闭SSH客户端后如何防止后台进程停止的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在通过SSH(Putty)在Linux机器上工作.我需要让一个进程在夜间运行,所以我想可以通过在后台启动该进程(在命令末尾使用&号)并将stdout重定向到文件来实现.
I'm working on a Linux machine through SSH (Putty). I need to leave a process running during the night, so I thought I could do that by starting the process in background (with an ampersand at the end of the command) and redirecting stdout to a file.
令我惊讶的是,这行不通.一旦我关闭腻子"窗口,该过程就会停止.
To my surprise, that doesn't work. As soon as I close the Putty window, the process is stopped.
如何防止这种情况发生?
How can I prevent that from happening??
推荐答案
查看" nohup "程序.
这篇关于在Linux中关闭SSH客户端后如何防止后台进程停止的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文