# 查询端口占用, 获得进程号 netstat -aon | findstr "8081" # 查询进程对应的程序(可选) tasklist | findstr "9088" # 直接杀掉进程(/F 强制关闭 /T包括子进程) taskkill /T /F /PID 9088
Windows系统查看端口占用的程序并杀掉进程
原文:https://www.cnblogs.com/hepengju/p/15221676.html