Iis-7

必須執行 IISRESET 兩次才能啟動所有 IIS 相關服務

  • January 31, 2017

似乎當我從命令提示符執行 IISRESET 時,大約 90% 的時間都會出現重新啟動錯誤。在 Win 2008 上執行 IIS7。但我在 IIS6 和 Win2003 上看到了同樣的情況。第二次執行 IISRESET 似乎可以啟動一切,或者我可以手動重新啟動 - 但我很好奇我是否可以通過一個 IISRESET 使其始終如一地工作。

Attempting stop...
Internet services successfully stopped
Attempting start...
Restart attempt failed.
The IIS Admin Service or the World Wide Web Publishing Service, or a service dep
endent on them failed to start.  The service, or dependent services, may had an
error during its startup or may be disabled.

C:\Users\btinstall>iisreset

Attempting stop...
Internet services successfully stopped
Attempting start...
Internet services successfully restarted

消息顯示“該服務或相關服務在啟動期間可能出現錯誤或可能被禁用。” 這可能發生在 IIS 7 / 7.5 中,因為 WAS(Windows 程序啟動服務)可能需要一些時間來刷新。

確保您的 IIS 相關服務成功重新啟動的最佳方法是以管理員身份使用“net stop W3SVC”和“net start W3SVC”。

有趣的是,您的伺服器有多少個網站?IISReset 第一次和第二次需要多長時間?(這可能是 MSFT 可以在 IISReset 中修復的問題……適用於 WAS 需要很長時間才能啟動的情況。)

隨意將其轉儲到 IIS.NET 論壇中,以便產品團隊查看。這是連結:http ://forums.iis.net/default.aspx?GroupID=41

引用自:https://serverfault.com/questions/107693