症狀: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,於是服務器恢復正常。
經過此次宕機告訴我們服務器的安全防護是這麼的重要。