Iis 7 Can';t在使用IIS 7的Windows Vista上启动WAMP和XAMPP服务器

Iis 7 Can';t在使用IIS 7的Windows Vista上启动WAMP和XAMPP服务器,iis-7,windows-vista,xampp,wampserver,Iis 7,Windows Vista,Xampp,Wampserver,我在运行WindowsVista的电脑上启动WAMP和XAMPP时遇到问题。可能是因为我也在Microsoft Visual Studio中编程并使用IIS 7,所以localhost(也由WAMP和XAMP使用)不可用,并且有几个进程阻止了WAMP和XAMP服务器的启动 我找到了多种解决方案,但它们只起了部分作用。 我综合了一些,提出了以下解决方案。我创建了两个bat文件(只需使用记事本和另存为.bat): startApache.bat: net stop MsDepSvc net stop

我在运行WindowsVista的电脑上启动WAMP和XAMPP时遇到问题。可能是因为我也在Microsoft Visual Studio中编程并使用IIS 7,所以localhost(也由WAMP和XAMP使用)不可用,并且有几个进程阻止了WAMP和XAMP服务器的启动

我找到了多种解决方案,但它们只起了部分作用。 我综合了一些,提出了以下解决方案。

我创建了两个bat文件(只需使用记事本和另存为.bat):

startApache.bat:

net stop MsDepSvc
net stop W3SVC
net start wampapache
net stop wampapache
net start MsDepSvc
net start W3SVC
和stoppache.bat:

net stop MsDepSvc
net stop W3SVC
net start wampapache
net stop wampapache
net start MsDepSvc
net start W3SVC
在启动XAMPP服务器的WAMP之前使用startApache.bat,在启动WAMP之后(或再次使用IIS7之前)使用stopApache.bat