问题
Is there a way to start a process using ssh that doesn't terminate when the ssh session terminates? I want the job to keep running on the computer I'm ssh-ing into without me having to keep the connection open.
回答1:
you can use nohup (assuming you are SSHing into *nix server)
回答2:
You could use the screen utility.
回答3:
An alternative to screen is dtach. dtach is smaller and more lightweight - in fact it is just the detach part of the screen utility.
来源:https://stackoverflow.com/questions/2190100/how-to-start-process-over-ssh-that-doesnt-terminate-when-session-ends