环境 CentOS7.5, Anaconda3,
1. 开启端口,参考
linux centos 7如何开放网络端口_Sam.Shi的博客-CSDN博客_centos开放8888端口
2. 配置Jupter
1. anaconda配置远程访问jupyter,并创建虚拟环境_bookjiang16的博客-CSDN博客
设置jupyter从任意IP访问:
jupyter notebook --ip='0.0.0.0'
设置jupyter从指定IP访问:
jupyter notebook --ip='172.25.17.xx'
如果后面不加–ip,我这边测试的是只允许127.0.0.1访问。设置本机地址都不能访问。。
设置jupyter从指定端口指定IP访问:
jupyter notebook --no-browser --port 8888--ip=192.168.1.103
nohup jupyter lab --ip='0.0.0.0' --notebook-dir='/home/yuan' > /home/yuan/.jupyter/jupyter.log2>&1 &