启动jar包 javaw -jar "myjar.jar" > c:\mylog.log & 查询端口占用 netstat -aon|findstr "端口号" 根据端口杀进程 taskkill /f /t /pid xxx