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

相关推荐
愚公移山填海29 分钟前
【无标题】
笔记·python·学习·pycharm
Danny_姜41 分钟前
Android Studio Quail 4 稳定版发布:本地 Gemma 4 + Android Skills
android·ide·android studio
2601_9623010114 小时前
Python环境搭建及PyCharm破解使用技巧
python·pycharm·环境搭建·避坑技巧·破解使用
withoutfear15 小时前
IntelliJ IDEA卡顿内存分配不足和索引被频繁触发问题解决办法
java·ide·intellij-idea
2601_9623824320 小时前
pychram for Mac怎么把背景调成黑色 , pycharm怎么调背景颜色(pycharm怎么调背景颜色为白色)
pycharm·配置·设置·黑色主题·背景颜色
寥落半伤感21 小时前
在Pycharm中一键迅速安装包及查看虚拟环境中包名的方法
ide·python·pycharm
进击的炸酱面1 天前
如何在服务器中使用codex?代理配置一图详解
ide·vscode·ssh
半亩码田1 天前
【.NET新特性·第17篇】EF Core 10 与 Aspire 13.1
python·flask·.net
持敬chijing1 天前
VSCode 远程开发环境完整搭建指南:汉化、SSH 免密连接与版本更新锁定
ide·vscode·ssh
2601_962078032 天前
构建RESTful APIs:使用Python和Flask
python·flask·web开发·api设计·构建restfulapis