解决“The port 8888 is already in use, trying another port”方法

精确找到被占用的端口对应的PID

netstat -ano|findstr "8888"

末尾显示的是PID得到端口号

接着,查看是哪个进程或程序占用了端口

tasklist|findstr "15044"

得到占用端口的进程为python.exe,调用命令停止它

taskkill /f /t /im python.exe
发布了11 篇原创文章 · 获赞 9 · 访问量 1067

猜你喜欢

转载自blog.csdn.net/shuzip/article/details/102410792