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.
答案 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
。