windows查看端口占用和使用端口的程序 MeowRain 2024-01-01 346 阅读1分钟 三个命令 查看占用端口的PID netstat -aon|findstr "port" 示例: netstat -aon|findstr "2081" 查找2081端口被哪个程序占用,最右侧 的就是程序PID tasklist|findstr "PID" 查看占用的程序 示例 tasklist|findstr "1203" 查看PID为1203的是哪个程序 杀死程序 taskkill /F /PID 进程ID