癥狀:administrator賬號打不開c:/inetpub目錄
原因:因為服務器被掛馬,引起服務器異常所有的網(wǎng)頁文件都放在c:/inetpub,于是造成網(wǎng)站全部崩潰
策略:掛起一塊新磁盤作為系統(tǒng),然后掃描磁盤殺死病毒和木馬,恢復原磁盤的文件管理權(quán)限,切換到源磁盤啟動
administrator賬號打不開c:/inetpub目錄,增加administrator賬戶,賦予完全權(quán)限,然后可以打開該目錄
但此時iis打不開,根據(jù)提示需要打開was和w3svc
于是定位到計算機-》管理-》service-》world wide web publishing service-》start,出現(xiàn)下面的錯誤
這時我們需要打開另一個程序,windows process Acivation service->start結(jié)果出現(xiàn)下的錯誤。
%28WS.10%29.aspx
微軟官網(wǎng)給出下面的解決方案:
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
執(zhí)行上面的步驟之后,按倒序打開上面的服務,依次ok,于是服務器恢復正常。
經(jīng)過此次宕機告訴我們服務器的安全防護是這么的重要。