win7命令行 端口占用 查询进程号 杀进程

打开CMD窗口

win+R–>cmd

根据端口号查找进程号

netstat -nao|grep 端口号

根据进程号得到进程名

tasklist |findstr 进程号

杀进程

taskkill -f -t -im 进程名

原文地址:https://www.cnblogs.com/yldf/p/11900157.html