进入cmd 输入netstat -ano
查看指定端口
netstat -aon|findstr “1521”
协议 本地地址 外部地址 状态 PID
TCP 127.0.0.1:1521 0.0.0.0:0 LISTENING 17072
TCP 127.0.0.1:1521 127.0.0.1:50597 ESTABLISHED 17072
TCP 127.0.0.1:1521 127.0.0.1:50598 ESTABLISHED 17072
TCP 127.0.0.1:1521 127.0.0.1:51428 ESTABLISHED 17072
TCP 127.0.0.1:50597 127.0.0.1:1521 ESTABLISHED 14476
TCP 127.0.0.1:50598 127.0.0.1:1521 ESTABLISHED 14476
TCP 127.0.0.1:51428 127.0.0.1:1521 ESTABLISHED 41884
找到对应的pid
根据pid找到程序
tasklist|findstr ”17072”
TNSLSNR.EXE 17072 Services 0 22,376 K
标签:ESTABLISHED,127.0,windows,占用,端口,TCP,0.1,1521,17072 From: https://www.cnblogs.com/abc9/p/17495504.html