癥狀:administrator帳號打不開c:/inetpub目錄
原因:因為伺服器被掛馬,引起伺服器異常所有的網頁檔案都放在c:/inetpub,於是造成網站全部崩潰
策略:掛起一塊新磁碟作為系統,然後掃描磁碟殺死病毒和木馬,恢複原磁碟的檔案管理許可權,切換到源磁碟啟動
administrator帳號打不開c:/inetpub目錄,增加administrator賬戶,賦予完全許可權,然後可以開啟該目錄
但此時iis打不開,根據提示需要開啟was和w3svc
於是定位到電腦-》管理-》service-》world wide web publishing service-》start,出現下面的錯誤
這時我們需要開啟另一個程式,windows process Acivation service->start結果出現下的錯誤。
http://technet.microsoft.com/en-us/library/cc734935%28WS.10%29.aspx
微軟官網給出下面的解決方案:
The Windows Process Activation Service (WAS) generates temporary application pool configuration
files that it stores in the %SystemDrive%inetpubtempappPoolsdirectory 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
執行上面的步驟之後,按倒序開啟上面的服務,依次ok,於是伺服器恢複正常。
經過此次宕機告訴我們伺服器的安全防護是這麼的重要。