jupyterhub安装

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/baidu_26550817/article/details/52955435

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/

展开阅读全文

没有更多推荐了,返回首页