远程连接jupyter失败解决办法

服务器上想要写jupyter的话需要配置一下,然后远程访问,记录下配置过程。

  1. 首先按照这个人写的博客操作一下。
  2. 尝试一下远程登录不行的话,说明这个端口被防火墙阻止了,可以如下操作:
# iptables -I INPUT -i eth0 -p tcp --dport 8888 -j ACCEPT
# iptables  -I OUTPUT -o eth0 -p tcp --sport 8888 -j ACCEPT
# /etc/rc.d/init.d/iptables save
# service iptables restart
  1. 然后应该就可以了。

猜你喜欢

转载自blog.csdn.net/qq_39805362/article/details/107411760