Skip to main content
 首页 » 编程设计

python之如何使用 anaconda 停止 jupyter 服务器

2024年10月01日7arxive

我正在使用 anaconda navigator 启动 jupyter notebook 服务器,但是当我想停止服务器时,我找不到办法。

因为我在使用anaconda navigator的时候没有终端,所以无法使用Ctrl +c来停止服务器。我在 Windows 上运行。

任何帮助将不胜感激^_^

请您参考如下方法:

您可以单击关闭 anaconda navigator 时出现的复选框。

如果您已经关闭导航器,请打开 cmd 并键入 jupyter-notebook list。

然后您可以使用以下命令终止端口:

netstat -o -n -a | findstr :3000 
   TCP    0.0.0.0:3000      0.0.0.0:0              LISTENING       3116 
 
taskkill /F /PID 3116 

用正在运行的端口替换 findstr 参数。 More info关于如何在 Windows 中终止进程。