Python---jupyter notebook 远程访问
2016-12-19 22:27
686 查看
1,ssh登录虚拟机(远程服务器)2,生成配置文件jupyternotebook --generate-config
3. 生成密码 这一步其实用不到,因为不建议使用密码登录,修改配置文件的时候密码建议屏蔽
打开ipython,创建一个密文的密码:In [1]: from notebook.auth import passwdIn [2]: passwd()Enter password: Verify password: Out[2]: 'sha1:86346e4cdf7a:c57960216df752e8ee5d3b9b8de6941640e15273'把密文复制下来'sha1:86346e4cdf7a:c57960216df752e8ee5d3b9b8de6941640e15273'4,修改配置文件
$vim ~/.jupyter/jupyter_notebook_config.py进行如下修改:c.NotebookApp.ip='*'c.NotebookApp.password = u'sha1:86346e4cdf7a:c57960216df752e8ee5d3b9b8de6941640e15273'c.NotebookApp.open_browser = Falsec.NotebookApp.port =8888 #随便指定一个端口,使用默认8888也可以个人建议:屏蔽掉密码那一行,如果不是服务器安装,而只是自己的虚拟机,自己用的虚拟机不需要安全设置5,启动jupyter notebook6,远程访问服务器 浏览器建议使用火狐,虚拟机下Linux里默认安装的是火狐浏览器 http://远程服务器ip:8888 7,如果登陆失败,则有可能是服务器防火墙设置的问题,此时最简单的方法是在本地建立一个ssh通道: 在本地终端中输入
ssh username@address_of_remote -L127.0.0.1:1234:127.0.0.1:8888便可以在
localhost:1234直接访问远程的jupyter了。username 一般为root上述第7步在虚拟机里也没有遇到,如果需要可以关闭防火墙,或者iptables-i INPUT -j ACCEPT,在INPUT链前面加全通策略。
相关文章推荐
- 跟我一起学python第二讲 开发工具Jupyter Notebook安装和远程访问设置
- 深度学习环境搭建:linux下 Ubuntu16.04+cuda8.0+cudnn+anaconda+tensorflow并配置远程访问jupyter notebook
- 远程访问jupyter notebook
- jupyter notebook远程访问不了的问题解决
- 远程访问jupyter notebook
- 远程访问jupyter notebook
- 远程访问jupyter notebook
- 服务器 配置 Jupyter notebook 远程访问 (Ubuntu 14.04)
- 设置 jupyter notebook 可远程访问&&设置jupyer 权限问题&
- 深度学习环境搭建:linux下 Ubuntu16.04+cuda8.0+cudnn+anaconda+tensorflow并配置远程访问jupyter notebook
- 远程访问jupyter notebook--->出现网络无法连接的问题
- 设置 jupyter notebook 可远程访问
- 如何远程访问jupyter notebook
- jupyter notebook配置文件修改注意事项--远程访问
- 实验教程1:如何在阿里云服务器ECS上安装anaconda,配置远程访问的jupyter notebook
- jupyter notebook设置远程访问权限
- 远程访问jupyter notebook
- Jupyter notebook 配置无问题 但就是无法远程访问,解决方法
- 远程访问jupyter notebook
- 远程访问jupyter notebook