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

相关推荐
sanzk8 小时前
esp32s3 +arduino ide
ide
这个人懒得名字都没写14 小时前
Flask + PyArmor Gunicorn启动报错:RuntimeError: unauthorised use of script
python·flask·gunicorn·pyarmor
立心者01 天前
Sdcb Chats .. 发布,彻底移除 Azure.AI.OpenAI 专用包
人工智能·flask·azure
时时三省2 天前
VScode 智能插件安装
ide·vscode·编辑器
令狐前生2 天前
Intellij IDEA 2025 破解安装
java·ide·intellij-idea
知彼解己2 天前
Eclipse Temurin:企业级 Java JDK 发行版的最佳实践
java·ide·eclipse
独隅2 天前
CLion 在 Linux 上的完整安装与配置使用指南
linux·运维·服务器·c语言·c++·ide
jerryinwuhan2 天前
VScode 安装opencode
ide·vscode·编辑器
223糖2 天前
Idea,pycharm2026激活保姆级教程
java·ide·intellij-idea
独隅2 天前
CLion 接入 Codex 的完整配置使用全面指南
c++·ide·ai·c++23