windows CMD 关闭指定端口

netstat -aon|findstr "8081"   --查询8081端口下的进程

taskkill /pid 14486 -t -f     --关闭对应端口的进程以及所属子进程

你可能感兴趣的:(windows CMD 关闭指定端口)