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

相关推荐
csdn_aspnet16 小时前
Copilot能换成本地吗?VSCode接本地大模型本地化接入方案
ide·vscode·ai·ollama
郝学胜_神的一滴20 小时前
Python 高级编程 027:四大推导式全攻略
python·pycharm
mit6.82420 小时前
archived
后端·python·flask
00后程序员张1 天前
有没有更轻量的 iOS 开发环境?快蝎kxapp轻量化路径与构成
ide·vscode·ios·objective-c·个人开发·swift·敏捷流程
前进再前进2 天前
PyCharm 连接 HPC 时 Path to conda 一直转圈:一次 Remote Development 解决方案记录
pycharm
猿小猴子2 天前
主流 Agent 之 「Zed」和 「ZCode」 介绍
ide·ai·agent·zed·zhipu·ade·zcode
mit6.8242 天前
AKS--Azure Managed Kubernetes
kubernetes·flask·azure
浪客川2 天前
使用 IDEA 生成API文档
java·ide·intellij-idea
Swift社区2 天前
Python 开发环境怎么选?PyCharm、VS Code、Trae 谁更适合 AI 开发?
人工智能·python·pycharm
SMF19192 天前
【PyCharm】让 PyCharm 使用 .venv 虚拟环境
ide·python·pycharm