hosts是一個沒有擴展名的系統文件,其作用就是將一些常用的網址域名與其對應的IP地址建立一個關聯“數據庫”,方便用戶們快速訪問,那么如果遇到hosts文件損壞的話該怎么辦呢?下面以win7 64位旗艦版系統為例,給大家講解一下hosts文件損壞的解決方法。
1、在win7系統中先找到hosts文件的所在文件夾,其實是位于c:\windows\system32\drivers\etc項中;

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文件,就可以完成修復。

關于Win7系統hosts文件損壞的解決方法就給大家介紹到這邊了,有遇到這樣情況的用戶們可以按照上面的方法來解決吧。

閩公網安備 35020302033304號


網友評論