使用命令提示符/PowerShell
查询占用端口的进程PID
Plain1netstat -ano | findstr :3005
输出结果
Plain1TCP 0.0.0.0:3005 0.0.0.0:0 LISTENING 17184
17184就是该进程的PID
终止进程
Plain1taskkill /f /pid 17184
Plain1netstat -ano | findstr :3005
Plain1TCP 0.0.0.0:3005 0.0.0.0:0 LISTENING 17184
17184就是该进程的PID
Plain1taskkill /f /pid 17184