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

当前回答

XAMPP -端口80被PID 4的“无法打开进程”使用!12

在CMD任务列表中运行注释

并找到与此相关的PID和进程名,现在打开任务管理器窗口

你也可以使用CTRL+ALT+DEL打开窗口任务管理器

现在单击进程选项卡,找到使用PID的名称,然后右键单击它 结束进程

现在再次重新启动xampp

其他回答

它通常工作后,你停止IIS服务器和Skype

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

XAMPP -端口80被PID 4的“无法打开进程”使用!12

在CMD任务列表中运行注释

并找到与此相关的PID和进程名,现在打开任务管理器窗口

你也可以使用CTRL+ALT+DEL打开窗口任务管理器

现在单击进程选项卡,找到使用PID的名称,然后右键单击它 结束进程

现在再次重新启动xampp

对我来说通常有效: -关闭Skype —关闭“services.msc”中显示的所有SQL Server进程 -关闭services.msc中的万维网出版

所以我在尝试启动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更改,并设置另一个端口号。

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