查看被占用端口对应的 PID

1
netstat -aon|findstr "端口"

查看指定 PID 的进程

1
tasklist|findstr "上面看到的PID"

结束进程

1
taskkill /T /F /PID 上面看到的PID