jupyter notebook --allow-root
复制代码
这个命令启动后会在前台运行,如果我们希望 jupyter 在后台运行,我们可以运行下面的命令
nohup jupyter notebook --allow-root > jupyter.log 2>&1 &
复制代码
我们便可以在本机通过服务器的公网 ip:8888 的方式来访问该 jupyter notebook。
PS:如果你想在服务器停止 juputer,首先运行
ps
复制代码
该命令可以显示正在运行的进程,我们找到 jupyter 进程的 pid,然后通过
kill -9 pid
复制代码
来杀死 jupyter 服务,即可停止 jupyter。