打开记事本,以管理员身份打开hosts文件
打开后hosts文件是空的,不用担心,原本hosts文件是空的,都是后期人为加上去的
先复制下面这段后放入文件然后保存:
# 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.
#
这样就好了~
你好!其实,这个文件只是一个[IP地址数据库],用来处理
加快域名解析[自定义域名]
屏蔽广告/插件等。
由于系统都用IP/域名访问系统官网,所以删了/空白也没问题。
附hosts文件原文,您可以用记事本打开C:\windows\system32\drivers\etc\hosts(Windows XP/2000/Vista/7/8/8.1/10)或C:/Windows(Windows 95/98/Me)粘贴(其实也没有用,就是一堆注释):
# 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
hosts文件是本地用的域名解析文件,但默认情况内部都是只有描述内容,并没有实际可以解析的数据条目,完全为空也不影响正常使用。通常正常安装的系统,这个文件都会至少有一段描述,如果没有,可能是你使用的集成安装文件进行过修改和优化,给你直接清除了内容,这个没有任何影响的。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)