windows查看指定端口的连接

在cmd里面执行(3306表示端口):

netstat -aon|findstr "3306"

协议 本地地址 外部地址 状态 PID
在这里插入图片描述
个数注意-an去掉了o否则报错:

netstat -an|find "80" /c

然后杀死指定进程:pid最后一个数字

taskkill /pid 14396  -t  -f
posted @ 2019-07-17 16:58  你就像甜甜的益达  阅读(179)  评论(0编辑  收藏  举报