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

相关推荐
engchina2 小时前
Visual Studio Code插件离线安装指南:从市场获取并手动部署
ide·vscode·编辑器
wq_1512 小时前
vscode include总是报错
ide·vscode·编辑器
PWRJOY3 小时前
Flask 会话管理:从原理到实战,深度解析 session 机制
后端·python·flask
Code_Geo6 小时前
python中Web框架Flask vs FastAPI 对比分析
前端·python·flask
aiweker8 小时前
python web 开发-Flask-Login使用详解
前端·python·flask
不争先.9 小时前
Pycharm和Flask的学习心得(7)
ide·pycharm·flask
Eiceblue10 小时前
通过Python 在Excel工作表中轻松插入行、列
开发语言·vscode·python·pycharm·excel
折戟不必沉沙11 小时前
python使用pycharm和conda 设置默认使用清华镜像
python·pycharm·conda
PWRJOY12 小时前
Flask-SQLAlchemy数据库查询:query
数据库·flask·sqlalchemy
MounRiver_Studio13 小时前
RISC-V IDE MRS2 开发笔记一:volatile关键字的使用
ide·笔记·risc-v