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

相关推荐
小毛驴8503 分钟前
Jupyter Notebook 安装步骤
ide·python·jupyter
2601_962099082 小时前
python flask sqlalchemy连接数据库流程介绍
数据库·python·flask·教程·sqlalchemy
烂蜻蜓2 小时前
Flask入门教程(附录):模板渲染API——Jinja2集成全解析
后端·python·flask
蓝桉柒715 小时前
下载idea,用idea输入一个程序
java·ide·intellij-idea
千里码aicood16 小时前
Flask-基于图神经网络的谣言检测研究
人工智能·神经网络·flask
烂蜻蜓1 天前
Flask入门教程(三十一):实用函数与类API——全局工具函数速查
后端·python·flask
千里码aicood1 天前
flask-基于注意力机制的异常流量检测与自动防御系统
后端·python·flask
程序员良辰1 天前
Eclipse Memory Analyzer(MAT)入门教程:从生成 Heap Dump 到定位 Java 内存问题
java·ide·eclipse·tomcat·idea
pjj198541 天前
Hadoop-python中使用大数据1
java·ide·eclipse
2601_962283881 天前
Python 开发框架:Django、Flask和FastAPI
python·django·flask·fastapi·web开发