关闭本地PC后,Google Cloud Platform jupyter笔记本仍在运行 [英] Google Cloud Platform jupyter notebook still runnig after off local PC

查看:324
本文介绍了关闭本地PC后,Google Cloud Platform jupyter笔记本仍在运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是GCP的新手,我试图在关闭本地PC后保持进程在Jupyter Notebook上运行.有人知道我该怎么做吗?如今,我在运行jupter notebook的VM上打开一个终端,然后在jupyter上启动该进程后,我想关闭我的计算机.

I'm new at GCP and I'm trying to keep my process running on Jupyter Notebook after shutting down my local PC. Does anyone know how can I do it? Nowaday I open a terminal on my VM run jupter notebook and then after start the process on jupyter I'd like to turn my machine off.

我一直在手机上关注该过程,然后在手机上关机.有人知道停止时如何自动将其关闭吗?

I keep following the process on my cellphone and shutdown on there. Does anyone know how to turn this off automatically when it stops?

很抱歉一次提出两个问题,但我认为一个问题与另一个问题有关.如果没有,我可以编辑另一个.

Sorry to make two questions at once, but I think that one is related with another. If it does not I can edit and make another one.

推荐答案

通常,在网络连接丢失(也包括关闭本地计算机)的情况下,保持远程会话正常运行,您可以使用终端多路复用器应用程序.来自已知问题:

Typically to keep your remote sessions up in the event of network connectivity loss (which also covers shutting down the local computer) you'd use a terminal multiplexer application. From Known issues:

间歇性断开连接:目前,我们没有为连接寿命提供特定的SLA.使用终端多路复用器,例如 tmux 屏幕,如果您打算让终端窗口保持打开状态, 延长时间.

Intermittent disconnects: At this time, we do not offer a specific SLA for connection lifetimes. Use terminal multiplexers like tmux or screen if you plan to keep the terminal window open for an extended period of time.

但是这些多路复用器是终端/文本模式应用程序,因此您必须使用--no-browser启动笔记本电脑,然后将本地浏览器连接到其端口.

But these multiplexers are terminal/text-mode apps, so you'd have to launch the notebook with the --no-browser and then connect your local browser to its port.

您可以在关于关闭会话-您只需指示多路复用器应用程序结束会话(或终止多路复用器应用程序本身)-您可以先通过包装脚本自动执行此操作,然后首先调用您的进程流程结束,调用命令以关闭会话.

As for shutting down the session - you'd just have to instruct the multiplexer application to end the session (or terminate the multiplexer app itself) - which you could do automatically via a wrapper script first invoking your process and immediately after the process ends invoking the commands to shutdown the session.

这篇关于关闭本地PC后,Google Cloud Platform jupyter笔记本仍在运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆