【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可以修改为自己输入的内容,可以参考下面的图片。

相关推荐
Mars-xq11 分钟前
VSCode 开发Android 新手必装插件清单
android·ide·vscode
xskukuku7 小时前
使用VSCode配置C语言运行环境
c语言·ide·vscode
小王C语言13 小时前
vscode智能提示问题、跳转问题
ide·vscode·编辑器
南知意-16 小时前
IDEA 2026.1最新版安装教程
java·ide·intellij-idea·idea安装·idea激活
编码者卢布16 小时前
【Azure AI Search】 searchMode=any 和 searchMode=all 有什么区别?
人工智能·python·flask
隔窗听雨眠17 小时前
Typora插件开发指南:从零打造IDE级写作环境
ide·typora
专注_每天进步一点点19 小时前
IDEA中,Apifox Helper 的 2.0.15-243版本的插件 导出指定的接口,入参的中文名为空,描述为空
java·ide·intellij-idea
郝亚军19 小时前
如何在vscode上运行python程序
ide·vscode·编辑器
Arvin.Angela19 小时前
VsCode 安装文档
ide·vscode·编辑器