如何重置hosts

忘记原来是什么样的了。。。

hosts文件的所在路径:

在nt、2000、xp、2003、vista和win 7的32位版本中,它存在于"%windir%\System32\drivers\etc\",

而64位版本则在"%windir%\SysWOW64\drivers\etc\"路径下。
如何把hosts文件恢复到默认状态:

1、你可以把引号之间的文字复制到资源管理器中,然后就可以快速找到这个文件了。
2、使用记事本打开这个文件。(在这之前你可以复制一下这个文件,作为备份)
3、清空其中的所有内容,然后把以下的内容复制进去(注意系统版本),最后保存。如果要其生效,那么之前打开的浏览器需要重启。

windows 7的默认hosts文件内容:

# Copyright (c) 1993-2006 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 handle within DNS itself.
# 127.0.0.1 localhost
# ::1 localhost

windows vista和2008 server的默认hosts文件内容:

# Copyright (c) 1993-2006 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
::1 localhost

windows xp和2003 server的默认hosts文件内容:

# 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

或者使用微软的修复工具把它恢复到默认状态。
温馨提示:答案为网友推荐,仅供参考
第1个回答  2014-08-23

C:\Windows\System32\drivers\etc

这个路径

本回答被提问者采纳

相关了解……

你可能感兴趣的内容

本站内容来自于网友发表,不代表本站立场,仅表示其个人看法,不对其真实性、正确性、有效性作任何的担保
相关事宜请发邮件给我们
© 非常风气网