IIS 和 Apache,ip 锁定

IIS and Apache, ip locked

我有一个服务器有两个 public IP,第一个由 IIS 使用,第二个 IP 在 Apche 的 Listen 指令中配置。但是当我 运行 Apache 服务时,我收到错误:

make_sock: could not bind to address <ip address>:80

IIS 中的所有网站都绑定到第一个 IP。

P.S。对不起我的英语

IIS 锁定端口 80 (0.0.0.0:80) 上的所有 ip。

我发现了这个:Stop http.sys from listening on port 80 in Windows

您可以使用:

netsh http add iplisten ipaddress=127.0.0.1

这 'release' 所有 ip(不是 127.0.0.1)和 Apache 都能正常工作!