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

相关推荐
不爱吃鱼的蔓热莓8 小时前
释放VSCode插件占用系统盘垃圾
ide·vscode·编辑器
hhb_61810 小时前
Flask+SQLite实现用户管理接口
python·sqlite·flask
2501_9151063211 小时前
iOS开发之Xcode常用调试技巧总结
ide·vscode·ios·objective-c·个人开发·swift·敏捷流程
bing_feilong14 小时前
vscode: ssh Got bad result from install script
ide·vscode·ssh
JavaEdge.14 小时前
Qodo v.s AI IDE Code Review
ide·人工智能·代码复审
ITKEY_15 小时前
Arduino IDE开发ESP32环境搭建到helloworld
ide·esp32
captain37616 小时前
Spring Web MVC入门(1)
ide·spring·java-ee·tomcat
葵花日记1 天前
VS2022 美化指南:用 ClaudiaIDE 设置自定义编辑器背景
ide·visualstudio·编辑器
解道Jdon1 天前
FigCraft把Figma用Rust从零重写了一遍
ide·windows·git·svn·eclipse·github·visual studio
运维@小兵2 天前
安装Pycharm并破解
ide·python·pycharm