netstat -ano | findstr "a"
tasklist | findstr "b"
a为被占用的端口号
b为当前被占用的端口号对应PID
如果找不到对应的端口号,可使用命令:
netsh interface ipv4 show excludedportrange protocol=tcp
这篇文章介绍了在Windows操作系统中,如何使用netstat-ano和tasklist|findstr命令来查找被占用的端口号及其对应的进程ID(PID)。如果无法找到特定端口号,可以利用netshinterfaceipv4showexcludedportrangeprotocol=tcp来查看被排除的TCP端口范围。
netstat -ano | findstr "a"
tasklist | findstr "b"
a为被占用的端口号
b为当前被占用的端口号对应PID
如果找不到对应的端口号,可使用命令:
netsh interface ipv4 show excludedportrange protocol=tcp
3394
1221
1万+

被折叠的 条评论
为什么被折叠?