window如何解决端口被占用? 首先找出哪个进程占用了该端口: netstat -ano | findstr 端口号 2. 发现进程号是4016,接着查找进程: tasklist | findstr 4016 3. 通过如下命令关闭进程: taskkill /f /t /im java.exe