我试图为我的应用服务器使用端口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,就是这样。没有扩展…什么都没有。“系统”。这是怎么回事?
我害怕结束这个过程,我该怎么办?
当前回答
我停止了万维网出版服务,然后它就工作了。
其他回答
这些对我都没用。我不得不回答一个超级用户的问题。
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.
这招对我很管用!
有许多服务可以在windows上监听端口80。
幸运的是,你可以通过简单的控制台命令来检测并停止它们:
NET stop HTTP
当你启动它时,你会首先得到列表:
为了避免将来出现这种问题,请访问本地服务并禁用所列出的服务。
注意:有些服务会立即重新启动,只需要运行几次“NET stop HTTP”。
听起来好像IIS正在监听HTTP请求的80端口。
尝试通过进入控制面板/管理工具/Internet信息服务停止IIS,右键单击默认网站,然后单击弹出菜单中的停止选项,并查看端口80上的侦听器是否已清除。
这个过程对我很有用:
右键单击我的电脑。 选择管理。 双击“服务和应用程序”。 然后双击“服务”。 右击“万维网出版服务”。 选择停止 重启XAMPP
我停止了万维网出版服务,然后它就工作了。