端口占用(如何查看端口被哪个程序占用)

1.win+R或直接打开任务栏和开始菜单(电脑左下);

键入   cmd ,Enter;

2.输入   netstat -ano

3.查看你想了解的端口以及对应的PID

输入  netstat -aon|findstr +PID

4.tasklist|findstr "PID"

演示:查看25号端口被哪个程序占用

第一步 开始-》运行

第二步 输入netstat -ano 发现 25 号端口的PID为 8560

第三步 输入 netstat -aon|findstr 8560

 第四步输入 tasklist|findstr "8560"

 

posted on 2015-10-11 20:24  笑傲江湖未平生  阅读(317)  评论(0)    收藏  举报