我试过删除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

当前回答

所以我在尝试启动Apache服务时也遇到了同样的问题,我想与大家分享我的解决方案。 以下是关于可能使用端口80的服务或程序的一些注意事项:

Skype: Skype uses port 80/443 by default. You can change this from Tools -> Options -> Advanced -> Connections and disable the checkbox "use port 80 and 443 for addtional incoming connections". IIS: IIS uses port 80 be default so you need to shut it down. You can use the following two commands: net stop w3svc, net stop iisadmin. SQL Server Reporting Service: You need to stop this service because it may take port 80 if IIS is not running. Go to local services and stop it. VMware Workstation: If you are running VMware Workstation, you need to stop the VMware Workstation server - port 443 as well.

这些选项与我一起工作,我可以启动Apache服务而没有错误。

另一个选项是将Apache监听端口从httpd.conf更改,并设置另一个端口号。

希望这个解决方案能帮助那些再次面临同样问题的人。

其他回答

由于@johnkarka对这个问题的评论,这个端口也被SQL Server报告服务使用。在停止此操作后,Apache启动正常。

进入“SQL Server配置管理器” 点击“SQL Server Reporting Service”并停止它

有趣的是,IIS在相同的配置下工作得很好,但Apache不行,必须停止SQL Reporting服务以使其在默认端口(80)上工作。

如果你已经在本地运行SQLServer Reporting Services,那么你也需要停止它。

我也遇到过同样的问题,但在我的情况下Apache已经在运行,由于某种原因XAMPP配置工具没有显示这一点。它发生在我安装后第一次启动XAMPP之后。在其他Apache实例崩溃后,一切正常,端口80和443再次空闲。

因此,在对系统进行更改之前,请确保没有发生上述明显的情况。

我也有这个问题,停止使用端口80的服务没有帮助。我通过以下程序解决了这个问题(在一个法国板上找到的):

启动注册表编辑器 HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ \ HTTP服务 将start的值改为4(禁用) 重新启动计算机

不知道这对其他服务有什么影响,但它永久性地解决了这个问题,到目前为止我还没有看到任何问题。

Windows 10操作系统。

在windows 10中,要释放端口80:

在我的情况下,我打开“服务”从“搜索窗口”(在屏幕的左角),然后停止所有的SQL server服务MSSQLSERVER和它再次工作