# 阿里云ECS基础版配置jupyter notebook实现服务器运行python代码
1.刚买入的服务器默认是32位的,我自己换成64位ubuntu
2.下载并安装anaconda64位linux python36
wget https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/Anaconda3-5.1.0-Linux-x86_64.sh
./Anaconda~.sh
3.将anaconda加入环境变量
对于所有用户 修改profile文件
vim /etc/profile
加入export PATH=/root/anaconda3/bin:$PATH
/root/anaconda3/bin这一段根据自己实际安装路径填写
4.生成加密的密码
运行iphthon
In [1]: from notebook.auth import passwd
In [2]: passwd()
Enter password:
输入并确认密码
Out[2]: 'sha1:*******************'
5.编辑配置文件
非root用户jupyter notebook --generate-config
root用户加上--allow-root
c.NotebookApp.ip='*'
c.NotebookApp.password = u'sha1:*******************'
c.NotebookApp.open_browser = False
c.NotebookApp.port
1.刚买入的服务器默认是32位的,我自己换成64位ubuntu
2.下载并安装anaconda64位linux python36
wget https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/Anaconda3-5.1.0-Linux-x86_64.sh
./Anaconda~.sh
3.将anaconda加入环境变量
对于所有用户 修改profile文件
vim /etc/profile
加入export PATH=/root/anaconda3/bin:$PATH
/root/anaconda3/bin这一段根据自己实际安装路径填写
4.生成加密的密码
运行iphthon
In [1]: from notebook.auth import passwd
In [2]: passwd()
Enter password:
输入并确认密码
Out[2]: 'sha1:*******************'
5.编辑配置文件
非root用户jupyter notebook --generate-config
root用户加上--allow-root
c.NotebookApp.ip='*'
c.NotebookApp.password = u'sha1:*******************'
c.NotebookApp.open_browser = False
c.NotebookApp.port