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

相关推荐
yangpipi-12 小时前
vscode的配置
ide·vscode·编辑器
锦瑟弦音12 小时前
vscode+platformio+arduion && 串口,wifi
ide·vscode·编辑器
lingzhilab13 小时前
零知IDE——零知标准板+INA219电流传感器的锂电池智能充放电监测系统
ide·stm32·单片机
jerwey1 天前
VSCode + Copilot下:配置并使用 DeepSeek
ide·vscode·copilot
花酒锄作田1 天前
[python]Flask - Tracking ID的设计
python·flask·pytest
奔跑吧 android1 天前
【vscode】【Continue】【插件使用】
ide·vscode·编辑器
容沁风1 天前
pycharm启动报错incompatible with Text-specific LCD
java·pycharm
TT哇1 天前
IDEA压缩空的软件包
java·ide·intellij-idea
取个鸣字真的难1 天前
Cline for VSCode 保姆级配置教程
ide·vscode·编辑器·ai编程
热爱生活的五柒1 天前
vscode:终端运行正常,但是用debug模式运行python项目就报错
ide·vscode·python