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

相关推荐
程序员阿明3 小时前
idea把插件啥的不默认放在C盘
java·ide·intellij-idea
我是Superman丶6 小时前
Arduino IDE 安装教程:Windows/macOS/Linux 开发环境搭建
ide·windows·macos
LaughingZhu8 小时前
Product Hunt 每日热榜 | 2026-09-08
java·ide·深度学习·百度·intellij-idea
千码君201611 小时前
提词器项目V1.0功能分析
ide·macos·xcode
2501_9151063211 小时前
Swift 4开发环境设置教程:xCode安装与Playground入门
ide·vscode·ios·objective-c·个人开发·swift·敏捷流程
一支黑色の铅笔12 小时前
VSCode 克隆Git项目
ide·git·vscode
小毛驴85013 小时前
Jupyter Notebook 安装步骤
ide·python·jupyter
2601_9620990815 小时前
python flask sqlalchemy连接数据库流程介绍
数据库·python·flask·教程·sqlalchemy
烂蜻蜓15 小时前
Flask入门教程(附录):模板渲染API——Jinja2集成全解析
后端·python·flask
蓝桉柒71 天前
下载idea,用idea输入一个程序
java·ide·intellij-idea