hosts文件修复

hosts文件是一个没有扩展名的系统文件,它的主要作用是能加快域名解析,还可以屏蔽网站等。
在win7体统中

如何找到hosts文件

Windows键+R键  在框中输入c:\windows\system32\drivers\etc

hosts文件怎么修复

将hosts文件用记事本打开
删除记事本的全部内容,将以下内容复制后放入文件。保存
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# copyright (c) 1993-1999 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
  127.0.0.1 localhost
  127.0.0.1 localhost
Fork me on GitHub