昨天搭建了Jupyter Notebook本机运行.发现做了反向代理,python内核是断开的.Jupyter官网也没有实例,网上也找了很久,终于经过一天的搜索和研究发现了Nginx 还需要设置上对于 WebSocket 的支持Jupyter Notebook 的 Python Notebook 还用到了 WebSocket下面是我的反向配置:location / { proxy_pass http://192.168.91.138:18882; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header REMOTE-HOST $remote_addr; #缓存相关配置 #proxy_cache cache_one; #proxy_cache_key $host$request
Centos7自带的Python版本为:Python 2.7.5因为Python现阶段有两大版本Python2 和 Python3 所以今天我们也要安装上一个Python3的版,实现两个版本共存;系统:最小化安装[习惯性]关闭防火墙:systemctl stop firewalld && systemctl disable firewalld 禁用SELINUX:sed -i 's#SELINUX=enforcing#SELINUX=disabled#g' /etc/selinux/config 添加EPLE源:rpm -ivh http://mirrors.yun-idc.com/epel/epel-release-latest-7.noarch.rpm 安装部分可能用到的依赖包:yum install vim openssl-devel readline-devel python-devel python-pip -y Python-3.6.4 编译安装:(官网下载)tar xf Python-3.6.4.tgz cd Python-3.6.4 ./con
Hawk
别固执的认为某事必须 !