一、根据端口查询PID netstat -ano | findstr "端口号" 二、用PID查询应用,避免错误操作 tasklist | findstr 进程ID 三、杀死进程 taskkill /pid 进程PID /F