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

相关推荐
阿华田5122 小时前
如何基于Jupyter内核自研NoteBook
ide·python·jupyter·自研notebook
Huanzhi_Lin4 小时前
常用IDE快捷键备忘
ide·快捷键
lingzhilab4 小时前
零知IDE——基于零知ESP32S3部署AI 小智,轻量化智能交互终端
ide·人工智能
lpfasd1234 小时前
一次 IDE Agent 死循环问题的架构复盘
ide·架构
magic_kid_20105 小时前
IDEA 复制到 Windows 远程桌面失败的原因与解决方案
java·ide·intellij-idea
贺今宵5 小时前
使用idea启动一个springboot项目
java·ide·intellij-idea
Alsn866 小时前
27.IDEA 专业版创建与打包 Java 命令行程序
java·ide·intellij-idea
RwwH6 小时前
PyCharm虚拟环境创建
ide·python·pycharm
EthanLifeGreat6 小时前
VSCode ssh远程到低内核版本Linux失败原因分析
linux·ide·vscode
Mr.zwX7 小时前
如何用vscode/cursor快速绑定并操作远程Github仓库
ide·vscode·github