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

相关推荐
Super 含13 小时前
Android 包体积优化(一):APK 到底大在哪里?从 APK 结构到体积分析
android·ide·vscode
冷雨夜中漫步13 小时前
IDEA CodeStyle代码风格格式化模板
java·ide·intellij-idea
树码小子13 小时前
Python 超轻量 Web 框架 Flask 快速入门教程
前端·python·flask
赵广陆14 小时前
企业实战:Milvues向量数据库实践
数据库·pycharm·langchain
Promising_GEO14 小时前
新电脑科研环境配置指南:Miniforge + PyCharm + GitHub 从安装到可用
ide·python·pycharm·github·地理
舞动青春8815 小时前
vscode copilot配置kimi k3
ide·vscode·copilot
love530love15 小时前
彻底清理 Windows 右键“打开方式“中的重复/失效程序项(PyCharm 多版本残留实战 + 自动化脚本)
运维·人工智能·windows·pycharm·jetbrains·toolbox
爱上纯净的蓝天16 小时前
AtomCode 多语言开发支持:一个 AI IDE 搞定全栈开发
ide·多语言·全栈开发·atomcode
小小啊python2 天前
IDEA中SpringBoot项目配置热部署
java·ide·intellij-idea·springboot·热部署
qq_22589174662 天前
基于Flask的城市地铁客流量数据预测系统设计与实现
后端·python·flask