windows下根据监听端口号查询运行程序

首先,查看端口port对应的进程ID

netstat -aon | findstr "port"

结果:

C:\Users\xes>netstat -ano|findstr "55820"
  TCP    127.0.0.1:55820        0.0.0.0:0              LISTENING       18576

然后查看进程ID18576对应的程序名

C:\Users\xes>tasklist | findstr "18576"
xes_py_helper.exe            18576 Console                    1        244 K

可以看到执行程序是xes_py_helper.exe

发布了63 篇原创文章 · 获赞 18 · 访问量 6万+

猜你喜欢

转载自blog.csdn.net/liuxiang15/article/details/102630355