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

相关推荐
学习智者13 小时前
《玄》IDE v3.6.3重磅发布:全功能修复与性能飞跃
开发语言·c++·ide·算法·中文语言 玄
李高钢13 小时前
Python Flask 框架入门:从零搭建你的第一个 Web 应用
前端·python·flask
重生之小比特14 小时前
【Java SE】IDEA 调试 Debug 案例完整分析
java·ide·intellij-idea
愚公移山填海15 小时前
【无标题】
笔记·python·学习·pycharm
Danny_姜16 小时前
Android Studio Quail 4 稳定版发布:本地 Gemma 4 + Android Skills
android·ide·android studio
2601_962301011 天前
Python环境搭建及PyCharm破解使用技巧
python·pycharm·环境搭建·避坑技巧·破解使用
withoutfear1 天前
IntelliJ IDEA卡顿内存分配不足和索引被频繁触发问题解决办法
java·ide·intellij-idea
2601_962382431 天前
pychram for Mac怎么把背景调成黑色 , pycharm怎么调背景颜色(pycharm怎么调背景颜色为白色)
pycharm·配置·设置·黑色主题·背景颜色
寥落半伤感1 天前
在Pycharm中一键迅速安装包及查看虚拟环境中包名的方法
ide·python·pycharm
进击的炸酱面2 天前
如何在服务器中使用codex?代理配置一图详解
ide·vscode·ssh