jupyterhub安装

1 下载个anaconda
https://www.continuum.io/downloads

bash Anaconda3-4.2.0-Linux-x86_64.sh

2 转到安装目录的bin下root下默认目录/root/anaconda3
使path生效

source /root/.bashrc

3 安装theano(机器学习库)

cd /root/anaconda3/bin
conda install theano

4 安装jupyterhub

conda install -c conda-forge jupyterhub

5 测试安装

jupyterhub -h
configurable-http-proxy -h

6 创建配置文件

jupyterhub --generate-config

7 生成一个默认的配置文件jupyterhub_config.py
简单配置:

c.JupyterHub.ip = '192.168.1.102'
c.JupyterHub.port = 4443
c.PAMAuthenticator.encoding = 'utf8'
c.LocalAuthenticator.create_system_users = True
c.Authenticator.whitelist = {'jupyter1', 'jupyter2', 'jupyter3'}
c.Authenticator.admin_users = {'jupyter1'}
c.Spawner.cmd=['jupyterhub-singleuser']
c.JupyterHub.statsd_prefix = 'jupyterhub'

8 开启jupyterhub服务

jupyterhub --no-ssl

开启服务不能登陆报500
可以关闭selinux试试
Allow disabling PAM sessions via c.PAMAuthenticator.open_sessions = False. This may be
needed on SELinux-enabled systems, where our PAM session logic often does not work properly

http://blog.csdn.net/myarrow/article/details/9856095/

  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 3
    评论
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值