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

相关推荐
shishi52111 小时前
trae重装后,无法预览调试弹窗报错的解决方案
ide·计算机视觉·语言模型
小皮每天进步一点点14 小时前
IDEA找不到源码
java·ide·intellij-idea
LCG米15 小时前
开发环境搭建:告别Keil,用CLion+STM32CubeMX打造智能嵌入式IDE
ide·stm32·嵌入式硬件
用户405383693516 小时前
开源语音识别FunASR入门详解
ide·macos·xcode
何亚告18 小时前
VScode引入claude+deepseek
ide·vscode·编辑器
dyxal19 小时前
VSCode中,通过SFTP插件管理远程服务器文件
服务器·ide·vscode
俩个逗号。。19 小时前
Android Studio build生成apk和run生成apk签名不一样
android·ide·android studio
儿歌八万首21 小时前
Android Studio 调试指南:从入门到进阶
android·ide·android studio
芝芝葡萄21 小时前
VsCode中使用Codex
前端·ide·vscode·编辑器·ai编程
A懿轩A21 小时前
【2026 最新】Python 与 PyCharm 详细下载安装教程 带图展示(Windows 版)
windows·python·pycharm