Windows Server 2008 R2 上的 IIS7 连接问题

发布于 2024-10-19 20:34:31 字数 298 浏览 2 评论 0原文

我刚刚在 VirtualBox 中的 Windows Server 2008 R2 计算机上设置了 IIS7。这样做后,我无法从任何其他客户端连接,尽管 http://localhost 有效。就此而言,我什至无法 ping 服务器。

经过一些研究,我发现在服务器上启用文件和打印共享解决了问题,但肯定有更好的方法,我更愿意学习使用最好的方法,而不是最简单的方法。

具体来说,我应该做什么来启用服务器的 ping 以及对服务器上运行的 Web 服务器的访问?

I just got IIS7 set up on a Windows Server 2008 R2 machine in VirtualBox. After doing so, I could not connect from any other client, though http://localhost worked. For that matter, I was unable to even ping the server.

After doing some research, I found that enabling File and Print Sharing on the server solved the problem, but surely there has to be a better way, and I would much prefer to learn to use the best method, rather than the easiest one.

What, specifically, should I do to enable both pinging of the server as well as access to the web server running on it?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

小傻瓜 2024-10-26 20:34:32

Windows Server 2008/2008R2 上安装了开箱即用的防火墙,除非您配置防火墙例外,否则用户无法访问服务器上的资源或服务。对此有一个例外,即您通过 GUI 工具(初始配置任务向导、服务器管理器)提供的该服务器上的服务/资源 - 这些会自动为您创建防火墙所需的例外。
因此,在您的情况下,无论是在安装文件和打印共享时还是在使用文件和打印共享配置向导/共享资源提供向导(很可能是后者)时,都会为您创建所需的防火墙例外。有问题的规则是:文件和打印机共享(回显请求 - ICMPv4-In) - 实际上允许 ping,但我猜 Windows 也使用它来发现网络资源以及您安装的角色所隐含的其他内容。
没有什么可以阻止您不启用文件和打印共享,而只是手动启用提到的防火墙例外。

Out of the box on Windows Server 2008/2008R2 firewall is installed and users cannot access resources or services on the server unless you configure exceptions to the firewall. There is one exception to this are services/resources on this server that you make available through the GUI tools (Initial Configuration Tasks Wizard, Server manager) - these automatically create firewall required exceptions for you.
So in your case either upon File and Print Sharing installation or upon using File and Print Sharing config wizard/Shared resource provision wizard (most likely the later) required firewall exception was created for you. The rule in question is: File and Printer Sharing (Echo Request – ICMPv4-In) - actually allows ping, but I guess Windows also uses it for network resources discovery and other things implied by the role you installed.
Nothing prevents you from not enabling File and Print Sharing and just enabling mentioned firewall exception manually.

一身软味 2024-10-26 20:34:31

入站Web HTTP端口不是默认被阻止的吗?我不是服务器专家,但记得打开防火墙以允许其通过。应该已经在那里了。

Isn't it that the inbound web HTTP port is blocked by default? I'm not a server guru but can remember going to the firewall to allow it through. Should already be there.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文