今天重新启动机器后发现IIS不能启动。在IIS 管理器里面启动IIS服务的时候出现以下错误

The process cannot access the file because it is being used by another process.

到网络上查找相关的错误均无法解决。在重新启动之前发现IIS完全正常.经过一番分析,否定了IIS被破坏的可能,因为没有中毒。

觉得有可能是IIS端口被占用引起。在cmd窗口状态下使用命令查看到底是谁占用了IIS 80 的端口. cmd> netstat -anb >C:\1.txt (说明:因为是windows 2003 server ,进程比较多,窗口下看起来不方便,输出到c盘根目录的1.txt)

打开看了一下,发现一个进程peer.exe占用了80端口。

xml 代码
   1. Proto  Local Address          Foreign Address        State           PID   
2. TCP 0.0.0.0:80 0.0.0.0:0 LISTENING 2356
3. [peer.exe]

用进程管理器查看

以前安装过一个软件 RaySource ,用来下载网盘的。结束这个进程,IIS终于可以启动了,Yeah!

原文地址:http://www.runman.cn/News/ViewNews.asp?ID=70

posted on 2011-08-18 15:46  linpiner  阅读(3339)  评论(0)    收藏  举报