大部分的網站都需要 Internet Information Services (IIS) Windows 處理序啟用服務 (WAS),因為該服務支援可處理 HTTP 要求的 World Wide Web Publishing 服務 (W3SVC)。WAS 處理序管理員會將應用程式集區對應至現有的工作者處理序,並依需要產生新的 W3SVC 執行個體來主控新的應用程式集區。 如果 WAS 無法使用,大部分的網站將不會啟動。
手動重新啟動 WAS 或將其設定為自動重新啟動
可能的解決方式包括:
手動重新啟動 WAS。
將 WAS 設定為自動重新啟動。
設定當 WAS 失敗時要採取的其他動作。
如果問題持續存在,請附加偵錯工具來疑難排解問題,或聯絡客戶服務人員。
手動重新啟動 WAS
手動重新啟動 WAS:
注意:由於 World Wide Web Publishing 服務 (W3SVC) 相依於 WAS,因此您可能必須先啟動 WAS 再啟動 W3SVC。
開啟提高權限的 [命令提示字元] 視窗。按一下 [開始],指向 [所有程式],按一下 [附屬應用程式],以滑鼠右鍵按一下 [命令提示字元],然後按一下 [以系統管理員身分執行]。
在命令提示字元中輸入 net start was。
若要重新啟動 W3SVC,請從命令提示字元輸入 net start w3svc。此外,也請啟動在 WAS 關閉時停止的所有其他服務。
將 WAS 設定為自動重新啟動
將 WAS 設定為自動重新啟動:
依序按一下 [開始]、[控制台] 和 [系統管理工具]。
對 [服務] 按一下滑鼠右鍵,然後選取 [以系統管理員身分執行]。
對 [Windows 處理序啟用服務] 按一下滑鼠右鍵,然後選取 [內容]。
按一下 [復原] 索引標籤。
在 [第一次失敗時:]清單中選取 [重新啟動服務]。
[復原] 索引標籤也有提供在 WAS 失敗時可指定的其他動作。包含以下各項:
將 WAS 設定為在發生第二次和/或後續失敗時自動重新啟動
將 WAS 設定為在經過您指定的分鐘數之後重新啟動
將失敗計數設定為在指定的天數後重設
指定在 WAS 失敗時要執行的程式,以及適用於該程式的選用參數
如需有關這些選項的詳細資訊,請在 [復原] 索引標籤上按一下 [協助我設定復原操作]。
Target | Microsoft.Windows.InternetInformationServices.6.2.WebServer |
Category | Alert |
Enabled | True |
Event_ID | 5030 |
Event Source | Microsoft-Windows-WAS |
Alert Generate | False |
Remotable | True |
Event Log | System |
ID | Module Type | TypeId | RunAs |
---|---|---|---|
DS | DataSource | Microsoft.Windows.EventProvider | Default |
WA | WriteAction | Microsoft.Windows.Server.IIS.6.2.GenerateAlertAction.SuppressedByDescription | Default |
<Rule ID="Microsoft.Windows.InternetInformationServices.6.2.WAS.terminated.unexpectedly.and.the.system.was.not.configured.to.restart.it" Enabled="true" Target="Microsoft.Windows.InternetInformationServices.6.2.WebServer" ConfirmDelivery="false" Remotable="true" Priority="Normal" DiscardLevel="100">
<Category>Alert</Category>
<DataSources>
<DataSource ID="DS" TypeID="Windows!Microsoft.Windows.EventProvider">
<ComputerName>$Target/Host/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<LogName>System</LogName>
<Expression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">Microsoft-Windows-WAS</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery>EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value>5030</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</And>
</Expression>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="WA" TypeID="Microsoft.Windows.Server.IIS.6.2.GenerateAlertAction.SuppressedByDescription">
<Priority>1</Priority>
<Severity>2</Severity>
<AlertMessageId>$MPElement[Name="Microsoft.Windows.InternetInformationServices.6.2.WAS.terminated.unexpectedly.and.the.system.was.not.configured.to.restart.it.AlertMessage"]$</AlertMessageId>
</WriteAction>
</WriteActions>
</Rule>