无法连接到运行 IIS 的服务器上的本地主机 [英] Cannot connect to Localhost on server running IIS
本文介绍了无法连接到运行 IIS 的服务器上的本地主机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我最近在 Windows 2012 R2 服务器上安装了 IIS,但似乎无法连接到本地主机、IP、服务器 DNS 等.我尝试了以下操作,但似乎没有任何帮助:
I recently installed IIS on a Windows 2012 R2 server and can't seem to connect to localhost, the IP, server DNS, etc. I've tried the following and nothing seems to be helping:
- 在 CMD 中运行 netstat -ano 以检查端口 :80 是否正在侦听(确实如此)
- 将站点绑定到 All Unassigned 和端口 80 上的 IP 地址(无主机名)
- 调整wwwroot文件夹的安全权限,确认IIS_IUSRS有访问权限,尝试添加IUSR
- 将加载用户配置文件的应用程序池设置从 False 更改为 True
- 编辑主机文件以添加行
127.0.0.1 localhost
- 确保启用匿名身份验证并且没有启用其他身份验证
- 暂时禁用在机器上运行的 MacAfee
不知道还可以尝试什么或在这里可能会失败.
Not sure what else to try or where it might be failing here.
推荐答案
原来我需要向应用程序正在使用的应用程序池授予权限.应用程序池的身份是 NetworkService,因此当我授予网络服务读取/执行权限时,我就能够导航到该站点.
Turns out I needed to grant permission to the Application Pool that the application was using. The Application Pool's identity was NetworkService, so as so as I granted Network Service read/execute permissions I was able to navigate to the site.
这篇关于无法连接到运行 IIS 的服务器上的本地主机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文