在centos7 下安装Anaconda 启动jupyter notebook
2017-11-29 17:48
936 查看
1.下载
https://www.anaconda.com/download/#linux
2.安装
选择默认安装路径:
安装中其他选项都选 yes
[b][b]****[/b][/b]安装完毕*[b][b][b][b]**[/b][/b][/b][/b]
使生效:
3.手动设置密码:
'sha1:a59919c8215d:670d591c340f4fd92a2aea6f6f8da9d19eea6238'这一串就是要在 jupyter_notebook_config.py 添加的密码。
4.修改配置文件:
在 /root/.jupyter/jupyter_notebook_config.py中找到下面的行,取消注释并修改。
以上设置完以后就可以在服务器上启动 jupyter notebook,root 用户使用 jupyter notebook --allow-root。浏览器打开 IP:指定的端口, 输入密码就可以访问了。
后台启动:
如图:
https://www.anaconda.com/download/#linux
2.安装
# bash Anaconda3-5.0.1-Linux-x86_64.sh
选择默认安装路径:
Anaconda3 will now be installed into this location: /root/anaconda3 - Press ENTER to confirm the location - Press CTRL-C to abort the installation - Or specify a different location below [/root/anaconda3] >>>
安装中其他选项都选 yes
Thank you for installing Anaconda3!
[b][b]****[/b][/b]安装完毕*[b][b][b][b]**[/b][/b][/b][/b]
使生效:
# source ~/.bashrc
3.手动设置密码:
# python Python 3.6.3 |Anaconda, Inc.| (default, Oct 13 2017, 12:02:49) [GCC 7.2.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> from notebook.auth import passwd >>> passwd() Enter password: Verify password: 'sha1:a59919c8215d:670d591c340f4fd92a2aea6f6f8da9d19eea6238' >>>
'sha1:a59919c8215d:670d591c340f4fd92a2aea6f6f8da9d19eea6238'这一串就是要在 jupyter_notebook_config.py 添加的密码。
c.NotebookApp.password = u'sha1:a59919c8215d:670d591c340f4fd92a2aea6f6f8da9d19eea6238'
4.修改配置文件:
在 /root/.jupyter/jupyter_notebook_config.py中找到下面的行,取消注释并修改。
c.NotebookApp.ip='*' c.NotebookApp.password = u'sha1:a5...刚才复制的那个密文' c.NotebookApp.open_browser = True c.NotebookApp.port =8888 #可自行指定一个端口, 访问时使用该端口
以上设置完以后就可以在服务器上启动 jupyter notebook,root 用户使用 jupyter notebook --allow-root。浏览器打开 IP:指定的端口, 输入密码就可以访问了。
后台启动:
#nohup jupyter notebook --allow-root&
如图:
相关文章推荐
- 在centos7服务器上安装anaconda和jupyter notebook
- 实验教程1:如何在阿里云服务器ECS上安装anaconda,配置远程访问的jupyter notebook
- anaconda/jupyter-notebook 安装及Windows/Linux多版本设置
- Ubuntu 14.04上安装和启动Jupyter Notebook
- ubuntu下安装Anaconda后打不开ipython notebook (jupyter notebook)
- windows下安装双版本anaconda,以及配置jupyter notebook的kernel
- Windows10内置安装Ubuntu系统 安装Anaconda jupyter notebook
- Windows下的Jupyter Notebook 安装与自定义启动
- windows下安装双版本anaconda,以及配置jupyter notebook的kernel
- Windows下的Jupyter Notebook 安装与自定义启动
- Windows下的Jupyter Notebook 安装与自定义启动(图文详解)
- Anaconda3 5.0.1 无法启动spyder, jupyter notebook
- Anaconda安装配置&jupyter notebook使用
- CentOS安装Anaconda、配置jupyter notebook、并打开ipynb文件
- 关于Anaconda中修改Jupyter Notebook默认启动目录的问题
- Windows下的Jupyter Notebook 安装与自定义启动(图文详解)
- Mac下Jupyter(即IPython-notebook)的搭建及使用(更建议安装Anaconda环境直接自带jupyter notebook)
- Windows下的Jupyter Notebook 安装与自定义启动(图文详解)
- Python安装 Anaconda 以及jupyter notebook配置
- win10安装anaconda,nb_conda (jupyter notebook extension) 装不上的解决方法