如何在windows 8.1上卸载IIS,以便在端口80上安装XAMPP

如何在windows 8.1上卸载IIS,以便在端口80上安装XAMPP,iis,xampp,windows-8.1,Iis,Xampp,Windows 8.1,我在Windows 8.1计算机上安装了IIS,但现在我想使用XAMPP。起初我犯了这样一个错误: Problem detected! 9:32:40 PM [Apache] Port 80 in use by "Unable to open process" with PID 4! 9:32:40 PM [Apache] Apache WILL NOT start without the configured ports free! 9:32:40 PM [Apache]

我在Windows 8.1计算机上安装了IIS,但现在我想使用XAMPP。起初我犯了这样一个错误:

Problem detected!
9:32:40 PM  [Apache]    Port 80 in use by "Unable to open process" with PID 4!
9:32:40 PM  [Apache]    Apache WILL NOT start without the configured ports free!
9:32:40 PM  [Apache]    You need to uninstall/disable/reconfigure the blocking application
9:32:40 PM  [Apache]    or reconfigure Apache and the Control Panel to listen on a different port
我从控制面板中删除了IIS,并从“打开和关闭Windows功能”中取消选中IIS,然后重新启动

但是,当我在浏览器中键入
localhost
时,会出现IIS,并且不允许我在项目中使用XAMPP作为本地主机。当我为我的项目选择XAMPP并运行它时,我会看到错误404,因为它无法将XAMPP定义为我的本地主机

我想使用XAMPP,我应该怎么做?

如果您从“Windows功能”中取消选中IIS(以及所有子节点),则IIS将消失,因此您可能有另一个进程使用该端口。历史上,许多应用程序都决定使用它(聊天、音乐播放器等)

我将按如下方式运行netstat,以查找正在侦听/使用TCP端口80并使用PID在任务管理器中查找其身份的所有进程:

netstat -ano | findstr :80
找到PID(最后一列)并找到罪魁祸首。如果是系统(通常是PID 4,阅读您的问题,很可能是这样,所以请继续阅读),那么一些应用程序正在使用HTTP.sys侦听端口80。因此,您需要在HTTP.sys中查找:

netsh http show servicestate > out.txt
notepad out.txt

在那里,您可以通过搜索“:80/”找到注册的URL,并查看这是否为您提供了一条线索。一个简单的选择是将apache移动到一个不是80的端口。正如我所说的,我更改了端口并启动了XAMPP,但我的项目无法启动XAMPP@怀亚特巴内特