- 在终端输入
netstat -ano | findstr 5555获取占用 5555 端口的进程 pid tasklist | findstr pid查看是那个进程占用了- 发现是 docker 占用了 关掉退出就好了
- 可以选择暴力一点的方法
taskkill /pid 1234 /f(/f 指的是强行结束) - 利用进程的 PID 结束进程:
ntsd -c q -p 1332(结束 explorer.exe 进程)

netstat -ano | findstr 5555获取占用 5555 端口的进程 pidtasklist | findstr pid查看是那个进程占用了taskkill /pid 1234 /f (/f 指的是强行结束)ntsd -c q -p 1332 (结束 explorer.exe 进程)