Windows查看端口占用情况

Windows查看端口占用

查找所有使用的端口情况

netstat -ano

image-20211112145029913

查看对应的端口

netstat -aon|findstr "3306"

image-20211112145128296

协议 | 监听的IP地址:端口 | 监听状态 | 程序的PID

查看指定PID进程

tasklist|findstr "8580"

image-20211112145338097

结束进程

taskkill /T /F /PID 8580
原文地址:https://www.cnblogs.com/cuianbing/p/15544630.html