netstat -ano | findstr "a"
tasklist | findstr "b"
a为被占用的端口号
b为当前被占用的端口号对应PID
如果找不到对应的端口号,可使用命令:
netsh interface ipv4 show excludedportrange protocol=tcp
netstat -ano | findstr "a"
tasklist | findstr "b"
a为被占用的端口号
b为当前被占用的端口号对应PID
如果找不到对应的端口号,可使用命令:
netsh interface ipv4 show excludedportrange protocol=tcp