1.查询端口对应的进程(pid) netstat -nao | findstr “端口号” 2.根据pid关闭对应的进程: taskkill /pid 对应pid /F 或者 taskkill -pid 对应pid -f