一、查询被占用的端口 netstat -aon | findstr "8080" 二、可以利用tasklist查询被占用的程序 tasklist | find 2704 三、利用tskill杀死进程 tskill 2074