Windows主機IIS7恢複實戰
症狀:administrator賬号打不開c:/inetpub目錄
原因:因為伺服器被挂馬,引起伺服器異常所有的網頁檔案都放在c:/inetpub,于是造成網站全部崩潰
政策:挂起一塊新磁盤作為系統,然後掃描磁盤殺死病毒和木馬,恢複原磁盤的檔案管理權限,切換到源磁盤啟動
administrator賬号打不開c:/inetpub目錄,增加administrator賬戶,賦予完全權限,然後可以打開該目錄
<a target="_blank" href="http://blog.51cto.com/attachment/201211/065123601.gif"></a>
但此時iis打不開,根據提示需要打開was和w3svc
<a target="_blank" href="http://blog.51cto.com/attachment/201211/065136129.gif"></a>
于是定位到計算機-》管理-》service-》world wide web publishing service-》start,出現下面的錯誤
<a target="_blank" href="http://blog.51cto.com/attachment/201211/065146328.gif"></a>
這時我們需要打開另一個程式,windows process Acivation service->start結果出現下的錯誤。
<a target="_blank" href="http://blog.51cto.com/attachment/201211/065156990.gif"></a>
<a href="http://technet.microsoft.com/en-us/library/cc734935%28WS.10%29.aspx">http://technet.microsoft.com/en-us/library/cc734935%28WS.10%29.aspx</a>
微軟官網給出下面的解決方案:
The Windows Process Activation Service (WAS) generates temporary application pool configuration files that it stores in the %SystemDrive%\inetpub\temp\appPoolsdirectory by default. If you change this location, WAS may not be able to find the directory.
To resolve this issue, make sure that the appPools directory meets the following requirements:
· The directory must exist.
· The directory cannot be on a UNC path.
· The directory must be available to WAS and should have the following permissions:
o SYSTEM: Full Access
o Administrators: Full Access
o IIS_IUSRS: Read
<a target="_blank" href="http://blog.51cto.com/attachment/201211/065209374.gif"></a>
執行上面的步驟之後,按倒序打開上面的服務,依次ok,于是伺服器恢複正常。
<a target="_blank" href="http://blog.51cto.com/attachment/201211/065226815.gif"></a>
經過此次當機告訴我們伺服器的安全防護是這麼的重要。
本文轉自zsaisai 51CTO部落格,原文連結:http://blog.51cto.com/3402313/1053416