美文网首页
python django在启动时抛出Error: [WinEr

python django在启动时抛出Error: [WinEr

作者: Alt丶 | 来源:发表于2019-02-24 11:20 被阅读0次

1.适用场景

在启动某个服务的时候,比如python中django启动的时候8000端口被占用,导致无法启动服务。


image.png

2.解决办法

step1:通过命令行找出端口对应的PID进程

C:\Users\Administrator>netstat -ano|findstr 8000

image.png

step2:命令行找出进程对应的详细信息

C:\Users\Administrator>tasklist |findstr 7336

image.png
可以看到是酷狗占用了此端口,现在就可以把它kill掉

step3:关闭该端口占用

C:\Users\Administrator>taskkill /pid 7336 /F

image.png
此时8000端口已经被释放,可以提供给其他服务使用

相关文章

网友评论

      本文标题:python django在启动时抛出Error: [WinEr

      本文链接:https://www.haomeiwen.com/subject/tspvyqtx.html