假设端口为1099 1.启动cmd, 执行命令netstat -ano|findstr 1099 ,会查询出占用端口号的进程号,这时候执行命令 taskkill -f -pid 进程号 杀死进程,然后重启