我试图为我的应用服务器使用端口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.
这招对我很管用!
其他回答
我有同样的问题,除了我从来没有使用IIS。当我修复另一个系统错误时,我将apache服务设置为手动启动,希望降低系统的复杂性。在我修复了另一个bug后,apache无法启动。我弄了一段时间,但只需要将apache设置为自动启动:启动>管理工具>服务。
显然,当Apache以这种方式启动时,它会在SYSTEM进程之前声明端口80。
hth某人。我在谷歌上搜索的结果都是“IIS和Apache不能在同一台机器上”。“这是为了我们当中的百分之一。
WINDOWS 11
对我来说,是万维网发布服务(World Wide Web Publishing Service)让系统使用80端口。
希望这对Win11新用户有所帮助。
我发现“SQL Server Reporting Services (MSSQLSERVER)”自动启动并在端口80上监听。
我希望这能有所帮助。
O
IP地址为0.0.0.0,state = LISTENING:表示80端口正在监听所有接口(未被使用)
如何读取NETSTAT -AN结果:
https://sites.google.com/site/xiangyangsite/home/technical-tips/linux-unix/networks-related-commands-on-linux/how-to-read-netstat--an-results
在阅读了这个问题的所有答案并尝试了所有方法之后,我卸载并重新安装了XAMPP,它工作正常。