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

相关推荐
某人辛木2 小时前
Web自动化测试
前端·python·pycharm·pytest
OsDepK4 小时前
移动编程OSMDE随时命令行进行Git
ide·git
色空大师9 小时前
【debug调试详解-idea】
java·ide·intellij-idea·调试·远程调试
Tiger Z12 小时前
Positron 教程7 --- 工作区
ide·编程·positron
木囧12 小时前
PyCharm手动创建虚拟环境
ide·python·pycharm
爱就是恒久忍耐14 小时前
VSCode里clangd如何配置跳转
ide·vscode·编辑器
SmartManWind14 小时前
vscode中claude-code插件wsl中开启自动模式
ide·vscode·编辑器·claude code
Watink Cpper16 小时前
VSCode通过ChatGPT5.5登陆codex:sign-in could not be complete 问题解决方案
ide·vscode·编辑器·codex·gpt5.5
相醉为友17 小时前
Trae IDE WSL2/SSH 环境网络故障排查笔记
ide·笔记·ssh
qq_1958216517 小时前
2. 开发环境搭建:IDE安装与配置、交叉编译工具链、调试工具准备
ide