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

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

问题描述

我的电脑(Windows XP SP3)上安装了 XAMP 1.6.8 和 IIS 5.0.

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

我无法同时运行它们.如果 IIS 服务正在运行,Apache 会抛出以下错误:

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 没有可用的侦听套接字,正在关闭 无法打开日志 注意上面的错误或消息,然后按 键退出.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 服务,请联系服务供应商,并参考特定于服务的错误代码 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.

推荐答案

could not bind to address 0.0.0.0:80"的意思是,当它启动时,它尝试绑定到所有可用网络接口上的端口 80.由于 IIS 已经占用了一个(或多个)要绑定的 IP,因此 apache 无法获取任何 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,我不确定它是否会绑定到任何可用 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指令并修改.目前它会说Listen 80"(意思是所有的IP),把它改成Listen 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.

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

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