netstat -ano | findstr "1099" 查看端口1099被哪个进程占用

tasklist | findstr "XXX" 查看进程号为XXX对应的进程t

askkill /f /t /im java.exe 结束该进程

netstat -ano 查看所有的端口占用情况