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

相关推荐
gongzhxu18 小时前
JetBrains IDEA开发环境搭建
java·ide·intellij-idea
米码收割机18 小时前
【Python】Flask+SQLite_web 宠物领养系统 (源码+文档)【独一无二】
前端·python·flask
独隅19 小时前
DevEco Code Plan+Build 双 Agent 协同开发实效解析
ide·华为
崖边看雾19 小时前
Python学习——函数
开发语言·windows·python·学习·pycharm
ITmaster07312 天前
告别 IDE?Android CLI 来了,开发进入 AI Agent 时代
android·ide·人工智能
weixin_BYSJ19872 天前
springboot3家政平台小程序--附源码00904
java·javascript·spring boot·python·django·flask·php
接针2 天前
Pycharm远程连接Ubuntu的conda环境
ubuntu·pycharm·conda
jiang_changsheng2 天前
详细教程__--PyCharm Terminal--切conda环境详解
ide·pycharm·conda
2601_960906722 天前
科技“无人区”跋涉,难度高、不确定性大
windows·macos·pycharm·myeclipse
第二个人3 天前
Python Web开发:从Flask到FastAPI,我经历了什么
前端·python·flask