Windows查询端口占用

netstat -ano|findstr “20880” 20880是端口号,查询得出的12368是进程号

C:\Users>netstat -ano|findstr "20880"
  TCP    0.0.0.0:20880          0.0.0.0:0              LISTENING       12368
  TCP    10.63.101.176:20880    10.63.101.176:55906    ESTABLISHED     12368
  TCP    10.63.101.176:55906    10.63.101.176:20880    ESTABLISHED     17980
  TCP    [::]:20880             [::]:0                 LISTENING       12368

查询进程 tasklist|findstr “12368”

C:\Users>tasklist|findstr "12368"
java.exe                     12368 Console                    1    558,948 K

C:\Users>tasklist|findstr "17980"
java.exe   		    17980 Console                    1    463,912 K

Windows管理器查看也可

Windows查询端口占用_第1张图片

你可能感兴趣的:(Windows查询端口占用)