为确保网站和 Web 应用程序处于隔离状态,必须使用唯一名称配置 Internet Information Services (IIS) 应用程序池并正确配置标识。如果在配置应用程序池期间出现错误,应用程序池可能无法用于所分配的网站和 Web 应用程序。
停止并重新启动应用程序池
有时必须重新启动应用程序池才能恢复为正常操作。由于应用程序池依赖于 Windows Process Activation Service (WAS),因此可能必须重新启动 WAS。如果您重新启动 WAS,则您可能还需要重新启动 World Wide Web 发布服务 (W3SVC),这取决于 WAS。
若要停止并启动应用程序池,请执行以下操作:
单击“开始”,再单击“控制面板”,然后单击“管理工具”。
右键单击“Internet Information Services (IIS) 管理器”并选择“以管理员身份运行”。
在“连接”窗格中,展开服务器节点并单击“应用程序池”。
在“应用程序池”页面上,选择您要启动或停止的应用程序池。
在“操作”窗格中,执行以下操作:
单击“停止”以停止应用程序池。
单击“启动”以启动应用程序池。
您还可以使用以下链接重新启动应用程序池:
回收应用程序池
若要停止或重新启动 WAS,请执行以下操作:
打开提升的命令提示符窗口。单击“开始”,指向“所有程序”,再单击“附件”,右键单击“命令提示符”,然后单击“以管理员身份运行”。
在命令提示符中,键入“net stop was /y”。
在命令提示符处,键入“net start was”。
启动在关闭 WAS 时停止的任何其他服务,包括 W3SVC。
若要启动 W3SVC,请执行以下操作:
打开提升的命令提示符窗口。单击“开始”,指向“所有程序”,再单击“附件”,右键单击“命令提示符”,然后单击“以管理员身份运行”。
键入 net start w3svc。
Target | Microsoft.Windows.InternetInformationServices.6.2.ApplicationPool |
Category | Alert |
Enabled | True |
Alert Generate | False |
Remotable | True |
ID | Module Type | TypeId | RunAs |
---|---|---|---|
DS | DataSource | Microsoft.Windows.Server.IIS.6.2.WarningAndErrorEventProvider | Default |
Filter | ConditionDetection | Microsoft.Windows.InternetInformationServices.6.2.ApplicationPool.EventFilter | Default |
WA | WriteAction | Microsoft.Windows.Server.IIS.6.2.GenerateAlertAction.SuppressedByDescription | Default |
<Rule ID="Microsoft.Windows.InternetInformationServices.6.2.WAS.did.not.apply.configuration.changes.to.application.pool" Enabled="onEssentialMonitoring" Target="Microsoft.Windows.InternetInformationServices.6.2.ApplicationPool" ConfirmDelivery="false" Remotable="true" Priority="Normal" DiscardLevel="100">
<Category>Alert</Category>
<DataSources>
<DataSource ID="DS" TypeID="Microsoft.Windows.Server.IIS.6.2.WarningAndErrorEventProvider">
<LogName>System</LogName>
</DataSource>
</DataSources>
<ConditionDetection ID="Filter" TypeID="Microsoft.Windows.InternetInformationServices.6.2.ApplicationPool.EventFilter">
<Expression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery>EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value>5085</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">Microsoft-Windows-WAS</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</And>
</Expression>
</ConditionDetection>
<WriteActions>
<WriteAction ID="WA" TypeID="Microsoft.Windows.Server.IIS.6.2.GenerateAlertAction.SuppressedByDescription">
<Priority>1</Priority>
<Severity>1</Severity>
<AlertMessageId>$MPElement[Name="Microsoft.Windows.InternetInformationServices.6.2.WAS.did.not.apply.configuration.changes.to.application.pool.AlertMessage"]$</AlertMessageId>
</WriteAction>
</WriteActions>
</Rule>