How to let Google Compute Engine continue running after the terminal is closed?

时间:2015-06-30 13:57:40

标签: google-compute-engine

I access the google compute engine through terminal, roughly looks like

gcloud compute ssh instance-name --zone zone-name

everything is fine, I get the a terminal, then I start a long-lasting program through that terminal on that instance.

But the problem is, once I closed the terminal, the program also stopped.

How could I start the program from the terminal and keep it running after having closed the terminal.

2 个答案:

答案 0 :(得分:1)

Not sure which instance you are using, but in Debian/Linux you can use screen for this.

答案 1 :(得分:0)

tmux是另一种选择,类似于another answer中提到的screen