hosts文件是一個沒有擴展名的系統文件,主要作用就是加快域名的解析,讓我們的系統能夠快速的打開網頁電腦里沒有host文件,如果我們遇到hosts文件損壞或者被惡意的篡改了應該怎么辦呢,今天就給大家分享一下win7 hosts文件修復方法步驟。
1、首先我們需要找到hosts文件在哪里,其位于c:rsetc項中。
2、你可以直接按組合鍵win r打開運行電腦里沒有host文件,輸入c:rsetc按回車,就可以找到了。
3、找到hosts文件后將其復制到桌面,用記事本打開。
4、刪除記事本的全部內容,將以下內容復制到文件中然后保存:
# (c) 1993-2009 Corp.## This is a HOSTS file used by TCP/IP for .## This file the of IP to host names. Each# entry be kept on an line. The IP # be in the first by the host name.# The IP and the host name be by at least one# space.## , (such as these) may be on # lines or the name by a '#' .## For :## 102.54.94.97 # # 38.25.63.10 # x host
# name is DNS .# 127.0.0.1 # ::1
5、然后將修改后的hosts文件放到c:rsetc來替換以前的hosts文件,即可完成修復。
以上就是hosts文件修復方法,如果你也想更改hosts文件不妨參考以上步驟嘗試著操作解決,希望可以幫助到大家。
,