首页 > 其他 > 详细

端口被占用的解决方案

时间:2014-01-25 19:26:17      阅读:344      评论:0      收藏:0      [点我收藏+]

在windows命令行窗口下执行:

运行–cmd

C:\>netstat -aon|findstr "8080" 
TCP     127.0.0.1:80         0.0.0.0:0               LISTENING       2448
端口被进程号为2448的进程占用,继续执行下面命令:
C:\>tasklist|findstr "2448" 
thread.exe                     2016 Console                 0     16,064 K
很清楚,thread占用了你的端口,Kill it
如果第二步查不到,那就开任务管理器,进程—查看—选择列—pid(进程位标识符)打个勾就可以了
看哪个进程是2448,然后杀之即可。

 

原来是:Msdepsvc.exe 进程

What is Msdepsvc.exe

Msdepsvc.exe with description Web Deployment Agent Service is a process file from company Microsoft Corporation belonging to product Microsoft IIS Extensions.
The file is digitally signed from Microsoft Corporation – Microsoft Time-Stamp Service 
We do not recommend removing digitally signed files from Microsoft Corporation

所以请注意安装了IIS7的朋友要特别注意这个Msdepsvc.exe他默认开启的占用了80端口

 强制终止进程:

      CMD命令:taskkill /F /pid 1408

端口被占用的解决方案

原文:http://www.cnblogs.com/map90/p/3533283.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!