windows10 查看进程端口的情况

以程序 winnfsd.exe 为例:

1 查看进程号 PID

C:\Users\leo>tasklist|findstr winnfsd.exe
winnfsd.exe                   3600 Console                    1      9,756 K

2 查看端口号

C:\Users\leo>netstat -ano|findstr 3600
   TCP    0.0.0.0:111            0.0.0.0:0              LISTENING       3600
   TCP    0.0.0.0:1058           0.0.0.0:0              LISTENING       3600
   TCP    0.0.0.0:2049           0.0.0.0:0              LISTENING       3600
   TCP    192.168.245.1:111      192.168.245.128:47210  CLOSE_WAIT      3600
   TCP    192.168.245.1:111      192.168.245.128:47212  CLOSE_WAIT      3600
   TCP    192.168.245.1:1058     192.168.245.128:900    CLOSE_WAIT      3600
   TCP    192.168.245.1:2049     192.168.245.128:711    CLOSE_WAIT      3600
   TCP    192.168.245.1:2049     192.168.245.128:932    CLOSE_WAIT      3600
   UDP    0.0.0.0:111            *:*                                    3600
   UDP    0.0.0.0:1058           *:*                                    3600
   UDP    0.0.0.0:2049           *:*                                    3600

posted on 2018-04-26 13:33  刘应杰  阅读(319)  评论(0编辑  收藏  举报

导航