阿帕奇(XAMP)和IIS不能一起工作 [英] Apache (xamp) and IIS cannot work together

查看:155
本文介绍了阿帕奇(XAMP)和IIS不能一起工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有XAMP 1.6.8和IIS 5.0中我的电脑(Windows XP中SP3)上安装。

I have XAMP 1.6.8 and IIS 5.0 installed on my PC(Windows XP SP3).

我无法同时运行它们。如果IIS服务正在运行,阿帕奇引发以下错误:

I'm unable to run them simultaneously. If IIS service is running, Apache throws the following error:

(OS 10048)每个套接字地址(协议/网络地址/端口)只有一个用法通常是允许的。 :make_sock:无法绑定解决0.0.0.0:80没有听插座可用,关停无法打开日志注意上面的错误或消息,和preSS键退出。 24 ...

(OS 10048)Only one usage of each socket address (protocol/network address/port) is normally permitted. : make_sock: could not bind to address 0.0.0.0:80 no listening sockets available, shutting down Unable to open logs Note the errors or messages above, and press the key to exit. 24...

Windows无法在本地计算机上启动的Apache2。欲了解更多信息,请查看系统事件日志。如果这是一个非Microsoft服务,与服务供应商,并参考服务特定的错误code 1。

Windows could not start the Apache2 on Local Computer. For more information, review the System Event Log. If this is a non-Microsoft service, contact the service vendor, and refer to service-specific error code 1.


Apache运行在不同的端口3128和IIS(asp.net)上通常运行在不同的端口上。

Apache runs on a different port 3128. And IIS (asp.net) usually runs on a different port.

推荐答案

无法绑定解决0.0.0.0:80是指,当它启动时,它尝试绑定到端口80上的所有可用的网络接口。由于IIS已经有了挤兑绑定到一个(或多个)IP地址,阿帕奇不能得到任何等都将失败。

"could not bind to address 0.0.0.0:80" means that, when it starts up, it tries to bind to port 80 on all available network interfaces. As IIS already has hogged one (or more) IPs to bind to, apache cannot get any and so will fail.

(我不知道这是否会绑定到任何可用IP,如果你已经配置它绑定到所有,而是一个已被使用。)

(I'm not sure if it will bind to any available IPs if you've configured it to bind to all, but one is already taken.)

所以,配置Apache绑定到不同的端口(如果你只有1个IP地址),或绑定到不同的IP或IP范围。

So, configure Apache to bind to a different port (if you only have 1 IP address), or to bind to a different IP or range of IPs.

您通过改变结合做到这一点。首先找到配置文件(httpd.conf)中的Listen指令,并改变它。目前,它会说听80(即所有IP地址),将其更改为说收听192.168.0.2:80,使其绑定到特定的IP地址。

You do this by changing the binding. First find the Listen directive in the configuration file (httpd.conf) and change it. Currently it will say "Listen 80" (meaning all IPs), change it to say "Listen 192.168.0.2:80" to make it bind to that specified IP address.

您可能需要编辑IIS配置太把这件事告诉只绑定到一个IP地址了。

You may have to edit the IIS configuration too to tell it to only bind to a single IP address too.

这篇关于阿帕奇(XAMP)和IIS不能一起工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆