一般来说,我对设置web服务器真的很陌生。我已经在Windows 8上安装了iis8,我正在尝试在本地建立一个小网站,同时进行一些开发。在IIS中,我选择添加站点,给出一个名称,指向我有index.html文件的位置(我尝试过不同的位置,最新的位置在c:\inetpub\wwwroot\test -文件夹中),否则使用所有默认设置。但是,当我尝试浏览到localhost时,我得到

HTTP错误503。业务不可用。

我已经验证了池已经启动,并且在目标文件夹上赋予了IIS_IUSRS完全控制

我到处搜索,但没有找到任何解决我的问题的东西,在EventLog或C:\Windows\System32\LogFiles\HTTPERR文件夹中没有任何有用的东西

有人能告诉我怎么了吗?


当前回答

这可能是因为连接到数据库的数量。我有这样的情况,所以,写了一个去构造函数和杀死db打开连接,它解决了。

其他回答

如果你有IIS URL重写安装它可以做到这一点。我在Windows 10更新后遇到了一些问题。

这篇StackOverflow帖子帮助了我。

进入Windows控制面板>程序和功能> IIS URL重写模块2 >修复。

对我来说,DefaultAppPool无法启动,事件日志告诉我C:\Windows\System32\inetsrv\redirect.dll无法加载。

文件不见了。出现这种情况的原因是没有安装Windows特性“HTTP重定向”。检查该功能是否在Internet信息服务\万维网服务\通用HTTP功能\HTTP重定向下。如果您现在刚刚安装它,应该不需要重新启动。

我遇到了同样的问题,因为服务器机器上没有足够的内存。 实际上有1/ 16gb可用内存,但是IIS在卸载几个未使用的应用程序后自动开始正常工作(他们没有80端口)。

我得到这个错误时,我安装Skype。因为我的网站使用端口80和Skype使用相同的端口也。

请看这个。

如果您有McAfee HIPS,并且在事件查看器应用程序日志中看到以下错误:

模块DLL C:\Windows\System32\inetsrv\ hipiisengineestu . DLL加载失败。 数据就是错误。

然后McAfee.com上的这个变通方法解决了我的问题。

原文如下:

Click Start, Run, type explorer and click OK. Navigate to: %windir%\system32\inetsrv\config Open the file applicationHost.config as Administrator for editing in Notepad. Edit the <globalModules> section and remove the following line: <add name="MfeEngine" image="%windir%\System32\inetsrv\HipIISEngineStub.dll" /> Edit the <modules> section and remove the following line: <add name="MfeEngine" /> After you have finished editing the applicationHost.config file, save the file, then restart the IIS server using iisreset or by restarting the system.