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

相关推荐
withoutfear1 小时前
IntelliJ IDEA卡顿内存分配不足和索引被频繁触发问题解决办法
java·ide·intellij-idea
2601_962382436 小时前
pychram for Mac怎么把背景调成黑色 , pycharm怎么调背景颜色(pycharm怎么调背景颜色为白色)
pycharm·配置·设置·黑色主题·背景颜色
寥落半伤感7 小时前
在Pycharm中一键迅速安装包及查看虚拟环境中包名的方法
ide·python·pycharm
进击的炸酱面8 小时前
如何在服务器中使用codex?代理配置一图详解
ide·vscode·ssh
半亩码田8 小时前
【.NET新特性·第17篇】EF Core 10 与 Aspire 13.1
python·flask·.net
持敬chijing8 小时前
VSCode 远程开发环境完整搭建指南:汉化、SSH 免密连接与版本更新锁定
ide·vscode·ssh
2601_962078031 天前
构建RESTful APIs:使用Python和Flask
python·flask·web开发·api设计·构建restfulapis
2501_915918411 天前
在Windows10上使用VSCode和Code Runner搭建Swift开发环境详细步骤
ide·vscode·ios·objective-c·个人开发·swift·敏捷流程
墨白曦煜1 天前
穿透 IDE 的障眼法:Git 四大工作区与核心数据流转解析
ide·git
泡泡鱼(敲代码中)2 天前
Python语法技术学习笔记
开发语言·笔记·python·学习·pycharm