当前位置:主页 > 雨林木风系统教程 > 老司机解决win10系统Hosts文件异常的办法

老司机解决win10系统Hosts文件异常的办法

发布日期:2019-05-14      作者:win10专业版官网      来源:http://www.ylmf5.com

  

今天小编分享一下win10系统Hosts文件异常问题的处理方法,在操作win10电脑的过程中常常不知道怎么去解决win10系统Hosts文件异常的问题,有什么好的方法去处理win10系统Hosts文件异常呢?今天本站小编教您怎么处理此问题,其实只需要 1、将hosts文件复制到桌面,用记事本打开 、删除记事本的全部内容,将以下内容复制后放入文件然后保存:就可以完美解决了。下面就由小编给你们具体详解win10系统Hosts文件异常的图文步骤:

  Hosts文件是什么?

  Hosts文件主要作用是定义ip地址和主机名的映射关系,是一个映射ip地址和主机名的规定。可以用文本文件打开!当用户在浏览器中输入一个需要登录的网址时,系统会首先自动从Hosts文件中寻找对应的ip地址,一旦找到,浏览器会立即打开对应网页,如果没有找到,则浏览器会将网址提交dns服务器进行ip地址解析。这也是提高快速打开网页的方法!

win10系统Hosts文件异常的图文步骤

  Hosts文件位置在哪里?

  windows xp/2003/Vista/2008/7/8/8.1/10用户Hosts文件是在:C:\windows\system32\drivers\etc

win10系统Hosts文件异常的图文步骤

  你可以直接根据上述路径进入,也可win+R后输入:C:\windows\system32\drivers\etc

win10系统Hosts文件异常的图文步骤

  Hosts文件修复方法:

  1、将hosts文件复制到桌面,用记事本打开;

win10系统Hosts文件异常的图文步骤

 

  2、删除记事本的全部内容,将以下内容复制后放入文件然后保存:

  # 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 inpidual 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 inpidual

  # 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

  复制代码

win10系统Hosts文件异常的图文步骤

  3、将修改后的hosts文件放入C:\windows\system32\drivers\etc替换以前的hosts文件,修复成功!

win10系统Hosts文件异常的图文步骤

 

  以上win10系统Hosts文件异常的图文步骤,只要将Hosts文件还原到默认状态,就不会有任何问题。更多教程内容欢迎关注系统城下载站!