首先,查看端口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