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

相关推荐
银迢迢2 小时前
idea控制台中文乱码采用好几种方法一直解决不了
java·ide·intellij-idea
好好沉淀4 小时前
IDEA 取消 Save Actions 自动删除未用导入(前端开发避坑)
java·ide·intellij-idea
添加shujuqudong1如果未回复5 小时前
深度探索:自动驾驶路径规划与避障功能实现——从运动学到动力学模型到决策规划算法的完整系列
ide
计算机学姐7 小时前
基于Python的商场停车管理系统【2026最新】
开发语言·vue.js·后端·python·mysql·django·flask
淡水瑜7 小时前
Visual Studio 实操
ide·visual studio
aduzhe11 小时前
vscode 自动化格式问题
ide·vscode·自动化
用户72278681234411 小时前
Flask数据库操作进阶:告别裸写SQL,用ORM提升开发效率
flask
invicinble13 小时前
关于认识,和优化idea开发
java·ide·intellij-idea
剽悍一小兔13 小时前
openEuler开发工具链与IDE支持性能深度测试
ide
kkk_皮蛋13 小时前
从零开始:用 Android Studio 开发一个 AI 智能日记 App
android·ide·android studio