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

相关推荐
时光追逐者6 小时前
Visual Studio 2026 现已正式发布,更快、更智能!
ide·c#·.net·visual studio
c***871911 小时前
Flask:后端框架使用
后端·python·flask
weixin_3776348412 小时前
【Git使用】PyCharm中的Git使用
ide·git·pycharm
Q_Q51100828512 小时前
python+django/flask的情绪宣泄系统
spring boot·python·pycharm·django·flask·node.js·php
爱吃泡芙的小白白13 小时前
vscode、anaconda、git、python配置安装(自用)
ide·git·vscode·python·anaconda·学习记录
Rover.x17 小时前
错误:找不到或无法加载主类 @C:\Users\AppData\Local\Temp\idea_arg_file223456232
java·ide·intellij-idea
2501_941823061 天前
强化学习在边缘AI智能控制中的应用与多语言实现实践指南
ide
ituff1 天前
微软认证考试又免费了
后端·python·flask
BBB努力学习程序设计1 天前
Python自动化脚本:告别重复劳动
python·pycharm
BBB努力学习程序设计1 天前
Python函数式编程:优雅的代码艺术
python·pycharm