在CentOS7服务器端启动jupyter notebook服务,在windows端使用jupyter notebook,服务器充当后台计算云端

在服务器端启动jupyter notebook服务,在windows端使用jupyter notebook,服务器充当后台计算云端

在服务器端启动jupyter notebook

(base) [jiangshan@localhost keras]$ jupyter notebook

[I 08:37:13.550 NotebookApp] Writing notebook server cookie secret to /run/user/1001/jupyter/notebook_cookie_secret

[I 08:37:15.081 NotebookApp] JupyterLab extension loaded from /home/jiangshan/anaconda3/lib/python3.7/site-packages/jupyterlab

[I 08:37:15.081 NotebookApp] JupyterLab application directory is /home/jiangshan/anaconda3/share/jupyter/lab

[I 08:37:15.084 NotebookApp] Serving notebooks from local directory: /home/jiangshan/workspace/keras

[I 08:37:15.084 NotebookApp] The Jupyter Notebook is running at:

[I 08:37:15.084 NotebookApp] http://localhost:8888/?token=21f607d8864b2ce268922e53b14af8e7c11714c8290547d2

[I 08:37:15.085 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).

[W 08:37:15.103 NotebookApp] No web browser found: could not locate runnable browser.

[C 08:37:15.104 NotebookApp]

To access the notebook, open this file in a browser:

file:///run/user/1001/jupyter/nbserver-18076-open.html

Or copy and paste one of these URLs:

http://localhost:8888/?token=21f607d8864b2ce268922e53b14af8e7c11714c8290547d2

在windows端,将服务器的8888端口重定向到windows端(做了映射绑定):

ssh -L 8888:127.0.0.1:8888 jiangshan@192.168.1.191

【第一个8888为windows端端口,第二个8888服务器端端口】

在windows端,浏览器输入:

http://localhost:8888/tree【或http://127.0.0.1:8888】

登录

OMG    不知道密码????

回到CentOS7服务器端

(base) [jiangshan@localhost keras]$ jupyter notebook --generate-config

Writing default config to: /home/jiangshan/.jupyter/jupyter_notebook_config.py

vim /home/jiangshan/.jupyter/jupyter_notebook_config.py

命令模式下输入查找NotebookApp.allow_password_change: /NotebookApp.allow_password_change,并按Enetr

NotebookApp.allow_password_change=False 【去掉注释】

(base) [jiangshan@localhost keras]$ vim /home/jiangshan/.jupyter/jupyter_notebook_config.py

(base) [jiangshan@localhost keras]$ jupyter notebook password

Enter password:

Verify password:

[NotebookPasswordApp] Wrote hashed password to /home/jiangshan/.jupyter/jupyter_notebook_config.json

内容:

{

"NotebookApp": {

"password": "sha1:b78610c54d93:7099a2a12725948960a00760b"

}

}

(base) [jiangshan@localhost keras]$ vim /home/jiangshan/.jupyter/jupyter_notebook_config.py

命令模式下输入查找c.NotebookApp.password: /c.NotebookApp.password,并按Enetr

#  The string should be of the form type:salt:hashed-password.

c.NotebookApp.password = 'sha1:b78610c54d93:7099a2a127c55d18960a00760b'【加上sha1:....,去掉注释】

(base) [jiangshan@localhost keras]$ jupyter notebook

[I 09:09:20.691 NotebookApp] JupyterLab extension loaded from /home/jiangshan/anaconda3/lib/python3.7/site-packages/jupyterlab

[I 09:09:20.691 NotebookApp] JupyterLab application directory is /home/jiangshan/anaconda3/share/jupyter/lab

[I 09:09:20.693 NotebookApp] Serving notebooks from local directory: /home/jiangshan/workspace/keras

[I 09:09:20.693 NotebookApp] The Jupyter Notebook is running at:

[I 09:09:20.693 NotebookApp] http://localhost:8888/

[I 09:09:20.694 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).

[W 09:09:20.699 NotebookApp] No web browser found: could not locate runnable browser.

在Windows端,dos或anaconda自带的Prompt终端

输入:ssh -L 8888:127.0.0.1:8888 jiangshan@192.168.1.191

(base) F:\workspace\GitHub_web_download\keras\examples>ssh -L 8888:127.0.0.1:8888 jiangshan@192.168.1.191

jiangshan@192.168.1.191's password:

Last login: Thu Mar 14 08:39:28 2019 from 192.168.1.72

打开浏览器,输入

http://127.0.0.1:8888【或http://localhost:8888/tree

在CentOS7服务器端启动jupyter notebook服务,在windows端使用jupyter notebook,服务器充当后台计算云端的更多相关文章

  1. 在windows端使用jupyter notebook,服务器充当后台计算云端 简化描述

    在CentOS7服务器端启动jupyter notebook服务,在windows端使用jupyter notebook,服务器充当后台计算云端 简化描述 CentOS7服务器端 jupyter no ...

  2. Windows下的Jupyter Notebook 安装与自定义启动(图文详解)

    不多说,直接上干货! 前期博客 Windows下的Python 3.6.1的下载与安装(适合32bits和64bits)(图文详解) 这是我自定义的Python 的安装目录 (D:\SoftWare\ ...

  3. SpringBoot 在CentOS7部署,注册为服务,开机启动

    1.首先在maven工程的pom文件中引入以下标签并保存 <build> <plugins> <plugin> <groupId>org.springf ...

  4. centos7 查看启动ntp服务命令

    标签(空格分隔): centos7 系统 1. 查看ntp服务命令: [root@node1 ~]# systemctl status ntpd * ntpd.service - Network Ti ...

  5. Linux操作系统-CentOS7启动流程和服务管理

    Linux操作系统-CentOS7启动流程和服务管理 作者:尹正杰 版权声明:原创作品,谢绝转载!否则将追究法律责任. 一.systemd POST --> Boot Sequence --&g ...

  6. Windows下的Jupyter Notebook 安装与自定义启动

    1.Jupyter Notebook 和 pip 为了更加方便地写 Python 代码,还需要安装 Jupyter notebook. 利用 pip 安装 Jupyter notebook. 为什么要 ...

  7. 阿里云下 centos7下启动程序总是被killed ,看内存占用情况以检查哪些服务存在问题并调整参数作调优

    很久不搭理自己的网站了,几天突然发现启动程序总是被killed, 于是查看了系统日志 vi /var/log/messages 发现出现 kernel: Out of memory: Kill pro ...

  8. 用scp命令来通过ssh传输文件,ssh推送.py程序到CentOS7服务器端出现lost connection错误

    ssh推送.py程序到CentOS7服务器端运行出现lost connection错误 (base) F:\workspace>dir 驱动器 F 中的卷是 新加卷 卷的序列号是 C2B9-62 ...

  9. ubuntu下设置jupyter notebook 2017年07月29日 19:28:34 小旋锋 阅读数:8329 标签: ubuntu 更多 个人分类: python 二三事 来源:http://blog.csdn.net/suzyu12345/article/details/51037905 Ipython Notebook现在已经改名为Ipython jupyter,是最知名最好用的

    ubuntu下设置jupyter notebook     来源:http://blog.csdn.net/suzyu12345/article/details/51037905 Ipython No ...

随机推荐

  1. matlab 的解函数的不同方式

     f=@(x)(sin(x)+2*x); f(pi/2) f=sym('sin(x)+2*x'); subs(f,'x',pi/2) %将 g 表达式中的符号变量 s 用 数值 f 替代 f=i ...

  2. Mysql无法选取非聚合列

    教程所示图片使用的是 github 仓库图片,网速过慢的朋友请移步>>> (原文)Mysql 无法选取非聚合列. 更多讨论或者错误提交,也请移步. 1. 前言 最近升级博客,给文章页 ...

  3. docker swarm 搭建及跨主机网络互连案例分析

    准备工作 安装docker,不建议直接使用Docker官方的yum install docker wget http://yum.dockerproject.org/repo/main/centos/ ...

  4. mysql从入门到放弃-入门知识介绍

    数据库在互联网网站的重要性 简单地说,数据库就是一个存放数据的仓库,这个仓库是按照一定的数据结构来组织和存储的,我们可以通过数据库提供的多种方法来管理数据库里的数据.由于数据库不易扩展,所以,在一个互 ...

  5. Salesforce的数据安全防护措施

    通过Salesforce,我们可以配置或开发出功能强大的网络应用.与此同时,无论作为管理员还是开发者,我们都要面对数据安全的问题. 常见的数据安全隐患有: SQL注入 跨站脚本攻击 跨站请求伪造 点击 ...

  6. oracle执行先决条件检查失败的解决方法

    在安装oracle 11g时,出现执行先决条件失败的情况如下: 你可以忽略所有强制安装,一般不会影响功能,但如果你想知道为什么会产生这种错误, 并且当出现以上情况时又该如何解决呢?如下列出了原因和解决 ...

  7. off by null 实战

    前言 off by null 是一个比较有意思的技术 下面通过 hctf2018 的 heapstrom_zero 实战一波. 相关文件(exp, 题目)位于 https://gitee.com/ha ...

  8. Flutter 布局(九)- Flow、Table、Wrap详解

    本文主要介绍Flutter布局中的Flow.Table.Wrap控件,详细介绍了其布局行为以及使用场景,并对源码进行了分析. 1. Flow A widget that implements the ...

  9. 监听软件异常崩溃并且保持日志--CrashHandler编写自己的异常捕获类

    平时写代码,我们可能会抛出各种异常,这些异常有些是我们测试过程中发现进行解决的,但是也有一些异常是我们未知的,不论是代码的逻辑问题还是Android本身底层的一些bug,我们都需要及时了解并进行解决. ...

  10. 我的简历 PHP Java C# 技术总监

          石先生 ID:303321266 目前正在找工作 13611326258 hr_msn@163.com 男|32 岁 (1985/08/06)|现居住北京-海淀区|12年工作经验     ...