使用 HTTP 的 Internet Information Services (IIS) 网站依赖于几个重要的 IIS 组件来确保可用性。Windows Process Activation Service (WAS)、World Wide Web 发布服务 (W3SVC)、HTTP 服务都必须正确运行。此外,必须为网站的应用程序提供正常运行的应用程序池。如果其中的任何组件未正常运行,网站将不可用。
清除 IP 侦听列表
默认情况下,IP 侦听列表为空。此配置适用于大部分网站,同时列表中的多余条目可能会影响网站可用性。若要清除 IP 侦听列表中的所有条目,请执行以下操作:
显示并记录 IP 侦听列表中的 IP 地址。
从列表中删除地址。
再次显示 IP 侦听列表以验证列表是否为空。
启动网站。
显示并删除 IP 侦听列表中的 IP 地址
若要显示并删除 IP 侦听列表中的 IP 地址,请执行以下操作:
打开提升的命令提示符窗口。单击“开始”,指向“所有程序”,再单击“附件”,右键单击“命令提示符”,然后单击“以管理员身份运行”。
键入 netsh http show iplisten 并按 ENTER。
记下显示的 IP 地址。
键入 netsh http delete iplisten x.x.x.x,其中 x.x.x.x 代表你要删除的 IP 地址。
为你在步骤 3 中记下的每个地址重复步骤 4 中的命令。
再次键入 netsh http show iplisten 并按 ENTER 以确认列表为空。
启动网站
若要启动网站,请执行以下操作:
单击“开始”,再单击“控制面板”,然后单击“管理工具”。
右键单击 Internet Information Services (IIS) 管理器并选择“以管理员身份运行”。
在“连接”窗格中,选择你要启动的网站。
在“操作”窗格中,单击“启动”以启动站点。
你还可以使用以下链接启动网站:
启动网站
Target | Microsoft.Windows.InternetInformationServices.6.2.WebSite | ||
Parent Monitor | System.Health.ConfigurationState | ||
Category | ConfigurationHealth | ||
Enabled | True | ||
Alert Generate | True | ||
Alert Severity | Error | ||
Alert Priority | Normal | ||
Alert Auto Resolve | True | ||
Monitor Type | Microsoft.Windows.InternetInformationServices.6.2.WebSite.EventLogManualReset2StateMonitorType | ||
Remotable | True | ||
Accessibility | Public | ||
Alert Message |
| ||
RunAs | Default |
<UnitMonitor ID="Microsoft.Windows.InternetInformationServices.6.2.WebSite.IP.Address.Not.In.HTTP.Sys.IP.Listen.List.Monitor" Accessibility="Public" Enabled="true" Target="Microsoft.Windows.InternetInformationServices.6.2.WebSite" ParentMonitorID="SystemHealth!System.Health.ConfigurationState" Remotable="true" Priority="Normal" TypeID="Microsoft.Windows.InternetInformationServices.6.2.WebSite.EventLogManualReset2StateMonitorType" ConfirmDelivery="false">
<Category>ConfigurationHealth</Category>
<AlertSettings AlertMessage="Microsoft.Windows.InternetInformationServices.6.2.WebSite.IP.Address.Not.In.HTTP.Sys.IP.Listen.List.Monitor.AlertMessage">
<AlertOnState>Error</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>Error</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Data/Context/EventDescription$</AlertParameter1>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="ManualResetEventRaised" MonitorTypeStateID="ManualResetEventRaised" HealthState="Success"/>
<OperationalState ID="ErrorEventRaised" MonitorTypeStateID="ErrorEventRaised" HealthState="Error"/>
</OperationalStates>
<Configuration>
<LogName>System</LogName>
<Expression>
<And>
<Expression>
<RegExExpression>
<ValueExpression>
<XPathQuery>EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>MatchesRegularExpression</Operator>
<Pattern>^(1129|1130)$</Pattern>
</RegExExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">Microsoft-Windows-IIS-W3SVC</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</And>
</Expression>
</Configuration>
</UnitMonitor>