1.查看端口占用情况【比如查看1099的端口占用】
netstat -aon | findstr 1099
最后一列就是占用的pid
2.kill调对应的pid就可以了
taskkill /pid 15612 -t -f
效果如下