win+r 打开 cmd1. netstat -nao | findstr {PortNumber}例如 8080端口被占用 netstat -nao | findstr 8080
2. taskkill /pid 16804 /f 即可kill该进程,解除端口占用。/f 为强制解除占用