我试图为我的应用服务器使用端口80,但当我执行netstat -aon时,我得到:
TCP 0.0.0.0:80 0.0.0.0:0监听4
当我在任务管理器中查找进程时,它显示PID 4是SYSTEM,就是这样。没有扩展…什么都没有。“系统”。这是怎么回事?
我害怕结束这个过程,我该怎么办?
我试图为我的应用服务器使用端口80,但当我执行netstat -aon时,我得到:
TCP 0.0.0.0:80 0.0.0.0:0监听4
当我在任务管理器中查找进程时,它显示PID 4是SYSTEM,就是这样。没有扩展…什么都没有。“系统”。这是怎么回事?
我害怕结束这个过程,我该怎么办?
当前回答
对我来说,它在停止Web部署代理服务后工作了。
其他回答
在windows的最新版本中,这项服务被称为“万维网发布服务”(W3SVC)。
C:\Windows\system32\svchost.exe -k iissvcs
您可以通过进入Services (Services .msc)并停止该服务,然后设置“启动类型”—>禁用,以防止它在windows启动时运行。
另一个可能占用端口80的服务是BranchCache
服务。msc将其显示为“BranchCache”
或者使用net命令停止服务
net stop PeerDistSvc
更新:
PeerDistSvc是svhost.exe后面的一个服务,可以查看svchost服务类型
tasklist /svc /fi "imagename eq svchost.exe"
这些对我都没用。我不得不回答一个超级用户的问题。
If it is a System Process—PID 4—you need to disable the HTTP.sys driver which is started on demand by another service, such as Windows Remote Management or Print Spooler on Windows 7 or 2008. There is two ways to disable it but the first one is safer: Go to device manager, select “show hidden devices” from menu/view, go to “Non-Plug and Play Driver”/HTTP, double click it to disable it (or set it to manual, some services depended on it). Reboot and use netstat -nao | find ":80" to check if 80 is still used.
这招对我很管用!
对我来说,我必须在我的虚拟机上卸载“Citrix虚拟桌面代理”
这对我来说很管用:
右键单击我的电脑。 选择管理。 双击“服务和应用程序”。 然后双击Services。 右击“万维网出版服务”。 选择停止。