1.在conda下安装Jupyter notebook,并进行常规的设置
https://zhuanlan.zhihu.com/p/44357064
2.在服务器指定文件夹下运行:jupyter notebook,如果的端口被占用,则可以输入jupyter notebook --port 8890来在8890端口运行一个新的jupyter notebook
3.如果要关闭某个端口,则可以
jupyter notebook stop
或者
jupyter notebook list #查看当前所有jupyter端口
lsof -n -i4TCP:[port-number] # 通过端口获得程序pid
sudo kill -9 [PID] # 删除进程
4.如果打开的端口是8888,那么在本地电脑浏览器输入https://(服务器IP):8888,则可以在本地电脑上打开服务器的文件夹,并进行运行.