我试过删除skype,但那不工作,我试过关闭万维网的东西,IIS关闭似乎没有什么工作。

12:51:22 PM  [Apache]   Problem detected!
12:51:22 PM  [Apache]   Port 80 in use by "Unable to open process" with PID 4!
12:51:22 PM  [Apache]   Apache WILL NOT start without the configured ports free!
12:51:22 PM  [Apache]   You need to uninstall/disable/reconfigure the blocking application
12:51:22 PM  [Apache]   or reconfigure Apache and the Control Panel to listen on a different port

当前回答

在httpd.conf中修改以下行,然后重新启动应用程序:

听80转听8080 ServerName localhost:80到ServerName localhost:8080

当你按下“开始”,应用程序仍然可以说你有一个错误,如“端口80被无法打开进程PID…”,但它仍然会工作。

如果错误包含“端口443正在被“无法打开进程”的PID…”,您需要同时修改httpd.conf和httpd-ssl.conf。

在httpd-ssl.conf中更改:

听443转听4433 <VirtualHost _default_:443>到<VirtualHost _default_:4433> ServerName www.example.com:443 ~ ServerName www.example.com:4433

其他回答

以管理员身份打开CMD提示符并执行以下命令: 净止损为/y 打开运行对话框(按Win+R),然后键入:services.msc 然后搜索万维网发布服务(WWW-Publishing Service)和Web部署代理服务并停止它们。您还应该禁用它们。 用XAMPP重新启动Apache:)

链接编号:https://www.sitepoint.com/unblock-port-80-on-windows-run-apache/

对于ASP患者。NET, c#或SQL Server用户,如果您使用SQlServer或Visual Studio,您的端口可能会遇到。你可能想做的最简单的事情是在命令>服务。msc,然后找到SQl Server报表服务,然后停止它。

摘自本文:

转到运行命令并输入: Netstat -o -n -a | findstr 0.0:80

这里的最后一个数字是使用它的进程ID。这是最常见的IIS或其他web相关的服务,很容易解决,但每一段时间(经常会在谷歌上四处看看),它似乎是PID 4 -根据Windows任务管理器是NT内核和系统。这不是很有帮助,因为杀戮会导致蓝屏死机。

占用端口80的东西与IIS或web无关,它是SQL Server报告服务。关闭任何类似SQL Server服务的东西,重新启动Apache,不需要重新启动。

所以PID 4监听端口80的问题?检查SQL服务并关闭它们。

更新- - - @sangam的评论:

工作在一个镜头。在我的例子中,结果是SQL server报告 服务。我停止了所有已安装实例的服务,并且 它工作了(没有重新启动机器)。

我也有同样的问题,我解决了问题,只是残疾了

服务中的“BranchCache Service”。

以某种方式,windows更新,该服务在启动时被触发,并使用80个端口。当你通过netstat检查时,你可以看到系统正在使用这个,但不知道使用的是哪个服务。

将主端口80更改为8080后,您必须在控制面板中更新端口: 然后点击这里: 在这里: 然后保存并重新启动。