使用 JupyterHub,可以创建一个多用户 Hub,它可以生成、管理和代理单用户 Jupyter notebook 服务器的多个实例。本次在Centos7.5下进行安装,用于单用户使用。这里介绍Jupyterhub的两种安装方式。
安装方案一
Jupyterhub可以通过conda安装,这种方案比较简单
# 安装conda3
# Download Linux Anaconda distribution (64-Bit)
wget https://repo.continuum.io/archive/Anaconda3-5.0.1-Linux-x86_64.sh
# Install Anaconda,安装位置设置为/home/work/anaconda3
sudo bash Anaconda3-5.0.1-Linux-x86_64.sh
# 安装jupyterhub,需要修改conda源
conda install -c conda-forge jupyterhub # installs jupyterhub and
conda install notebook # needed if running the notebook servers locally
在执行conda install -c conda-forge jupyterhub时,总报Solving package specifications: .Killed,没有找到解决方案。
安装方案二
使用pip3安装,需要装好configurable-http-proxy、jupyterhub、notebook、jupyterlab。
# 安装jupyterhub
npm install -g configurable-http-proxy
sudo pip3 install jupyterhub
sudo conda install notebook
sudo pip3 install jupyterlab
# 生成配置文件
jupyterhub --generate-config
# 启动
nohup jupyterhub -f jupyterhub_config.py &
# 默认8000端口,访问链接,查看安装情况
http://122.51.225.162:8000/
效果
打开链接后,可以看到登录界面,用户名和密码默认是centos启动该服务的用户名和密码。
默认打开的目录为/home/work,即该用户的home路径。
资料
- Jupyterhub的安装与配置
- conda install -c conda-forge jupyterhub
- centos7上安装JupyterHub
- centos7下安装与卸载anconda3
- 仓库镜像源为清华_conda国内镜像修改(最新版)
- CentOS安装node和npm
- 图文详解:CentOS 7系统下安装JupyterHub+PySpark
- anaconda修改国内源
- centos7 配置jupterhub
- Anaconda 一直 solving package specification
- 阿里云centOS7搭建JupyterLab
- 在centos7上搭建jupyter lab服务器
- 超级详细 centos7 安装 jupyter lab
最后
大家如果喜欢我的文章,可以关注我的公众号(程序员麻辣烫)
我的个人博客为:
https://shidawuhen.github.io/
往期文章回顾:
- 设计模式
- 招聘
- 思考
- 存储
- 算法系列
- 读书笔记
- 小工具
- 架构
- 网络
- Go语言