简体   繁体   English

我应该在IIS管理器中键入localhost的用户名和密码?

[英]What am I supposed to type as user name and password for localhost in IIS Manager?

I'm trying to connect to default web site on localhost – but IIS asks me for credentials (I know I can use an Administrator account, but I'm trying to log on when IIS is not run as an Administrator). 我正在尝试连接到localhost上的默认网站 - 但是IIS要求我提供凭据(我知道我可以使用管理员帐户,但是当IIS不以管理员身份运行时我正在尝试登录)。 I tried putting in the administrator user name and password for windows, but it doesn't accept them. 我尝试为Windows添加管理员用户名和密码,但它不接受它们。

I'm using windows 7 home premium. 我正在使用Windows 7家庭高级版。

What should I enter? 我应该输入什么?

如果您尝试为站点设置自己的身份,则需要将其作为本地系统帐户运行,或者需要在计算机上创建新的用户帐户并使用这些凭据。

ok - so anonymous is enabled. 好的 - 所以匿名启用了。 The next thing to check is that the identity the website is running under has access to the website folder. 接下来要检查的是网站运行的身份可以访问网站文件夹。 Each site in IIS runs in an application pool, and each pool runs under a user account. IIS中的每个站点都在应用程序池中运行,每个池都在用户帐户下运行。 So first find out what app pool you're running under. 首先要找出你正在运行的应用程序池。 On the right hand side click on Advanced Properties and check the name of you application pool. 在右侧单击“高级属性”,然后检查应用程序池的名称。 Then close that window and double click on application pools above your website on the left. 然后关闭该窗口并双击左侧网站上方的应用程序池。 Click on the app pool your site is running under, and then click advanced properties on the right. 单击运行您的站点的应用程序池,然后单击右侧的高级属性。 In the dialog box that launches, under process model check the value of Identity. 在启动的对话框中,在进程模型下检查Identity的值。 Then go check the permissions on your website folder and make sure that identity has a minimum of read and execute rights on the folder. 然后检查网站文件夹上的权限,并确保该标识对该文件夹具有最低的读取和执行权限。

Added another answer as the text above exceeds the comment limit 添加了另一个答案,因为上面的文字超出了评论限制

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 登录失败:用户名未知或密码错误? 但是我使用正确的用户名和密码 - Logon failure: unknown user name or bad password? But I am using the right username and password 安装WAMP后,在firefox中询问本地主机的用户名和密码 - Asking for the user name and password for the localhost in firefox, after installing WAMP IIS 7.5我在做什么错? - IIS 7.5 What am I doing wrong? IIS Manager (localhost) 中的“无法执行”问题 - "Unable to perform" issue in IIS Manager (localhost) 访问本地主机时 IIS 要求输入用户名和密码 - When accessing localhost IIS asks for username and password 我正在使用Window Server 2008 VPS,如何在用户键入IP地址时将其转到Tomcat页面而不是IIS页面? - I am using Window Server 2008 VPS, how to make that when user type the IP address it will go to Tomcat page not IIS page? 出站IIS重写规则未添加参数,我缺少什么? - Outbound IIS Rewrite Rule not adding Parameter, what am I missing? IIS提供本地URI而不是服务器名称 - IIS gives localhost URI instead of server name 在 IIS vm 上使用 localhost 或公共域名 - On IIS vm use localhost or public domain name 如何以编程方式使用 ServerManager 允许 IIS 管理器用户访问 IIS 站点 - How to Allow IIS Manager User to a IIS Site using ServerManager Programatically
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM