无题

无题
smallmayititle: windows 查看端口占用
date: 2025-06-18
tags: [windows]
windows 查看端口占用
1.所有端口的占用情况
1 | netstat -ano |
2.指定端口占用情况
1 | netstat -aon|findstr "端口号" |
3.查看占用端口的进程
1 | tasklist|findstr "被占用端口对应的 PID" |
4.结束端口占用的进程
1 | /t 包含子进程,/f 强制终止, /pid 进程id |

title: windows 查看端口占用
date: 2025-06-18
tags: [windows]
1 | netstat -ano |
1 | netstat -aon|findstr "端口号" |
1 | tasklist|findstr "被占用端口对应的 PID" |
1 | /t 包含子进程,/f 强制终止, /pid 进程id |