Jupyter Notebook 服务器配置
2017-09-02 20:10
483 查看
Setp1: 生成配置文件
Step2:生成密码
方法一:
方法二:
Step3: 添加密码到配置文件中
Step4: 使用SSL进行加密通信
Step5: 总结
参考链接
> jupyter notebook --generate-config # 会在当前操作系统登录用户下生成~/.jupyter文件夹及jupyter_notebook_config.py文件
Step2:生成密码
方法一:
> jupyter notebook password Enter password: **** Verify password: **** [NotebookPasswordApp] Wrote hashed password to /Users/you/.jupyter/jupyter_notebook_config.json
方法二:
# 进入python命令行 In[1]: from notebook.auth import passwd In[2]: passwd() Enter password: Verify password: Out[2]: 'sha1:67c9e60bb8b6:9ffede0825894254b2e042ea597d771089e11aed'
Step3: 添加密码到配置文件中
c.NotebookApp.password = u'replace your password'
Step4: 使用SSL进行加密通信
# 生成证书 > openssl req -x509 -nodes -days 365 -newkey rsa:1024 -keyout mykey.key -out mycert.pem # 会生成mykey.key以及mycert.pem文件
# jupyter_notebook_config.py c.NotebookApp.certfile = u'/absolute/path/to/your/certificate/mycert.pem' c.NotebookApp.keyfile = u'/absolute/path/to/your/certificate/mykey.key'
Step5: 总结
# Set options for certfile, ip, password, and toggle off # browser auto-opening c.NotebookApp.certfile = u'/absolute/path/to/your/certificate/mycert.pem' c.NotebookApp.keyfile = u'/absolute/path/to/your/certificate/mykey.key' # Set ip to '*' to bind on all interfaces (ips) for the public server # 只要其他客户端可以访问到服务器地址(ip),即可远程访问 c.NotebookApp.ip = '*' c.NotebookApp.password = u'sha1:bcd259ccf...<your hashed password here>' c.NotebookApp.open_browser = False # It is a good idea to set a known, fixed port for server access c.NotebookApp.port = 9999
参考链接
相关文章推荐
- 服务器 配置 Jupyter notebook 远程访问 (Ubuntu 14.04)
- Ubuntu 16.04 LTS 配置 Jupyter notebook 为服务器
- 在服务器上配置jupyter notebook
- 实验教程1:如何在阿里云服务器ECS上安装anaconda,配置远程访问的jupyter notebook
- jupyter notebook 架设在服务器 本地用浏览器访问服务器上的jupyter
- 在win7下配置pyspark在jupyter notebook中使用的简单方法
- 怎么配置Jupyter Notebook默认启动目录?
- ubuntu配置spyder和jupyter notebook的工作目录
- ubuntu系统下安装anaconda2并配置tensorflow环境及jupyter notebook工具远程登陆来开发用于深度学习环境
- 在服务器搭建Jupyter notebook
- 安装配置远程jupyter notebook(原ipython notebook)
- Linux下远程访问Jupyter Notebook 配置
- 远程使用内网服务器的tensorboard和jupyter notebook
- Windows下配置jupyter notebook的python3与R运行环境
- 本地远程访问Ubuntu16.04.3服务器上的Jupyter notebook
- anaconda jupyter notebook配置python3和python2两个版本
- mac 下在服务器上运行 Jupyter notebook
- 配置Anaconda中Jupyter Notebook的默认主页(默认路径)
- CentOS7服务器安装Jupyter Notebook
- 远程连接服务器jupyter notebook、浏览器以及深度学习可视化方法