关闭ssh连接后如何保持任务运行? [英] How to keep the task running after closing the ssh connection?
本文介绍了关闭ssh连接后如何保持任务运行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
即使ssh连接已关闭,如何保持进程在远程服务器上运行?
How to keep the process running on remote server even if the ssh connection is closed?
推荐答案
您可以使用屏幕分离会话.您连接到ssh服务器,启动屏幕,然后进行计算...
You can use screen to detach a session. You connect to your ssh server, launch screen and then your computation...
在您下一次连接时,screen -a
附加上一个会话
At your next connection, screen -a
to attach previous sessions
请参阅: http://www.bangmoney.org/presentations/screen.html
这篇关于关闭ssh连接后如何保持任务运行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文