作為沒有擴展名的係統文件hosts,主要是用於加快域名解析,使得係統快速打開網頁。那麼,要是遇到hosts文件損壞了或者被惡意篡改的問題怎麼辦?今天小編來跟大家說下host文件損壞怎麼修複。
host文件損壞的解決方法:
1、先在c:\windows\system32\drivers\etc項中,查看hosts文件。
2、按下快捷鍵win+r,打開運行,並輸入c:\windows\system32\drivers\etc按回車。
3、這個時候需要找到hosts文件,把它其複製到桌麵,用記事本打開。
4、接著需要刪除記事本的全部內容,並把以下內容複製到文件中進行保存:
# Copyright (c) 1993-2009 Microsoft Corp.## This is a sample HOSTS file used by Microsoft TCP/IP for Windows.## This file contains the mappings of IP addresses to host names. Each# entry should be kept on an individual line. The IP address should# be placed in the first column followed by the corresponding host name.# The IP address and the host name should be separated by at least one# space.## Additionally, comments (such as these) may be inserted on individual# lines or following the machine name denoted by a '#' symbol.## For example:## 102.54.94.97 rhino.acme.com # source server# 38.25.63.10 x.acme.com # x client host
# localhost name resolution is handled within DNS itself.# 127.0.0.1 localhost# ::1 localhost
5、最後把修改後的hosts文件,直接放到c:\windows\system32\drivers\etc來替換以前的hosts文件,就可以完成修複了。
如果遇上【host文件損壞怎麼修複】類似的問題,不清楚怎麼解決的話,建議參考上述的步驟來設置。還有其他的ghost係統下載後操作技巧的需要了解的話,歡迎上係統粉官網查看。