以程序 winnfsd.exe 为例:
1 查看进程号 PID
C:Usersleo>tasklist|findstr winnfsd.exe
winnfsd.exe 3600 Console 1 9,756 K
2 查看端口号
C:Usersleo>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