文章目录 1 概述 2 常用命令 2.1 netstat -ano:查看所有端口 2.2 netstat -ano | findstr port:查看指定端口 2.3 tasklist /fi "pid eq port":根据 PID 找对应进程 2.4 taskkill /f /pid pid:根据 PID 终止对应进程 3 扩展 3.1 进入 cmd 命令 3.2 cls 清屏命令 1 概述 netstat:net stat,网络信息统计 2 常用命令 netstat /? 2.1 netstat -ano:查看所有端口 “本地地址、外部地址” 的格式:ip:port “PID”:Program ID,进程ID netstat -ano 2.2 netstat -ano | findstr port:查看指定端口 替换 port 即可,如下 8080 netstat -ano | findstr 8080