服务器后台挂起jupyter

Posted tizzi

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了服务器后台挂起jupyter相关的知识,希望对你有一定的参考价值。


在Ubuntu服务器中启动jupyter,关闭终端后,jupyter 也会关闭

  • 解决方法
    nohup jupyter notebook --ip=0.0.0.0 --no-browser --allow-root > jupyter.log 2>&1 &
    用&让命令后台运行, 并把标准输出写入jupyter.log中
    nohup表示no hang up, 就是不挂起, 于是这个命令执行后即使终端退出, 也不会停止运行.
  • 终止进程

    通过ps -a 查看pid, 使用kill -9 pid终止进程


以上是关于服务器后台挂起jupyter的主要内容,如果未能解决你的问题,请参考以下文章