為確保網站和 Web 應用程式的隔離狀態,必須將 Internet Information Services (IIS) 應用程式集區設為具有唯一名稱和設定正確的身分識別。如果在設定應用程式集區期間發生錯誤,則應用程式集區可能無法供處理其獲指派的網站和 Web 應用程式。
停止和重新啟動應用程式集區
偶爾必須重新啟動應用程式集區以回到正常運作。因為應用程式集區相依於 Windows 處理序啟用服務 (WAS),因此您可能必須重新啟動 WAS。若您重新啟動 WAS,則可能也必須重新啟動相依於 WAS 的 World Wide Web Publishing 服務 (W3SVC)。
停止及啟動應用程式集區:
依序按一下 [開始]、[控制台] 和 [系統管理工具]。
對 [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="true" 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>