windows下如何确定程序占用端口

来源:互联网 发布:powerdesigner sql 编辑:程序博客网 时间:2024/05/16 06:47

1、查看端口占用的进程ID

输入 

netstat -ano|findstr "6608"


返回

        TCP 127.0.0.1:6608  0.0.0.0:0 LISTENING 2016

这表示端口被进程号为2016的进程占用


2、通过进程号查看进程

输入

        tasklist|findstr "2016"


返回

      2016 Console 0   16,064K   这样就找到占用此端口的程序了




原创粉丝点击