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

相关推荐
独隅6 小时前
Visual Studio 2026 详细安装教程和配置指南
ide·visual studio
lifewange11 小时前
Pycharm和IDEA中安装Cursor的方法
ide·pycharm·intellij-idea
读书札记20221 天前
visual studio 调试技巧总结
ide·visual studio
lifewange1 天前
Claude Code可以安装在IDEA和Pycharm中么
java·pycharm·intellij-idea
lifewange1 天前
OpenCode可以安装在IDEA和Pycharm中么
java·pycharm·intellij-idea
hacker7071 天前
Visual Studio安装教程(C#开发版)
ide·c#·visual studio
码界筑梦坊2 天前
112-基于Flask的游戏行业销售数据可视化分析系统
开发语言·python·游戏·信息可视化·flask·毕业设计·echarts
XD7429716362 天前
科技早报晚报|2026年5月1日:本地优先文档、安卓离线 IDE 与双击即用密码库,今天最值得跟进的 3 个机会
android·ide·科技·科技新闻·开发者工具·本地优先
謓泽2 天前
【Trae IDE】核心功能详解与使用教程
ide·ai·trea
lzl20402 天前
VSCode中Codex CLI登录卡在‘Sign in with ChatGPT‘屏幕
ide·vscode·chatgpt·codex