【Internal Server Error】pycharm解决关闭flask端口依然占用问题

Internal Server Error

The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.

起因:

我们在运行flask后,断开服务依然保持运行,这是因为这是一种伪断开,只是在pycharm这里中止了,但是python解释器依旧在运行这个服务。

解决方法:

我们只要关闭运行flask的python解释器就行了

利用cmd关闭监听这个解释器就行

复制代码
netstat -ano | findstr 5000

这里的5000可以根据自己的需要更改

复制代码
taskkill /pid 7076 /f

7076可以修改为自己输入的内容,可以参考下面的图片。

相关推荐
郝学胜-神的一滴9 小时前
Qt 高级开发 005: Qt Creator与Visual Studio 项目双向转换
开发语言·c++·ide·qt·程序人生·visual studio
不剪发的Tony老师12 小时前
Code::Blocks:一款免费开源的C/C++/Fortran集成开发环境
c语言·c++·ide
高斯林.神犇12 小时前
Idea中使用Git
java·ide·intellij-idea
lifewange16 小时前
如何在VScode中配置shell环境?
ide·vscode·编辑器
lpfasd12316 小时前
Trae Solo 与 Qoder Quest
ide·人工智能·cli
martian66517 小时前
在 IntelliJ IDEA 中安装、配置 Claude Code 及解决连接错误完全指南
java·ide·intellij-idea
专注VB编程开发20年18 小时前
逍遥Pya IDE -- 可视化Python开发工具,类似VBA WPS(JSA)
ide·python·wps
小墨宝1 天前
vscode自带内网穿透
ide·vscode·编辑器
专注VB编程开发20年1 天前
TRAE 稳定不排队、避开 “人满 / 没钱限流” 完整方案(实测有效)
ide·人工智能