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

相关推荐
weixin_BYSJ198711 小时前
springboot校园自习室管理小程序---附源码32142
java·javascript·spring boot·python·django·flask·php
2501_9159214311 小时前
iOS开发环境搭建详解 Xcode 配置与快蝎轻量级工具选择
ide·vscode·macos·ios·个人开发·xcode·敏捷流程
郝学胜_神的一滴18 小时前
Python 高级编程 026:序列内核深剖
python·pycharm
△曉風殘月〆20 小时前
如何在Visual Studio 2026中配置Qt 6.1开发环境
ide·visual studio
zhangjin11201 天前
解决Android Studio gradle下载超时和缓慢问题(二)
android·ide·android studio
gongzhxu2 天前
JetBrains IDEA开发环境搭建
java·ide·intellij-idea
米码收割机2 天前
【Python】Flask+SQLite_web 宠物领养系统 (源码+文档)【独一无二】
前端·python·flask
独隅2 天前
DevEco Code Plan+Build 双 Agent 协同开发实效解析
ide·华为
崖边看雾2 天前
Python学习——函数
开发语言·windows·python·学习·pycharm
ITmaster07313 天前
告别 IDE?Android CLI 来了,开发进入 AI Agent 时代
android·ide·人工智能