魔法系统之家下载 - 系统之家,XP系统之家,GhostXP系统,纯净版XP系统,Windows7下载之家

当前位置:首页 > 系统教程 > 其它教程 > 详细页面

Hosts文件异常怎么弄?Hosts文件修复方法

时间:2017-08-17 20:03:29来源:魔法系统之家下载作者:quers

  Hosts文件的主要作用是可以加快某个域名或网站的解析速度,来达到快速访问某个网站的目的,当然,Hosts文件还可以屏蔽网站,重新定向网站域名等作用,如果用户计算机中的Hosts被改的面目全非,可以看看下文Hosts文件修复方法。

  Hosts文件是什么?

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

Hosts文件异常怎么弄?Hosts文件修复方法

  Hosts文件位置在哪里?

  Windows XP/2003/Vista/2008/7/8/8.1/10用户Hosts文件是在:C:\Windows\System32\drivers\etc

Hosts文件异常怎么弄?Hosts文件修复方法

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

Hosts文件异常怎么弄?Hosts文件修复方法

  Hosts文件修复方法:

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

Hosts文件异常怎么弄?Hosts文件修复方法

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

  1. 01# copyright (c) 1993-1999 microsoft corp.
  2. 02#
  3. 03# this is a sample hosts file used by microsoft tcp/ip for windows.
  4. 04# this file contains the mappings of ip addresses to host names. each
  5. 05# entry should be kept on an inpidual line. the ip address should
  6. 06# be placed in the first column followed by the corresponding host name.
  7. 07# the ip address and the host name should be separated by at least one
  8. 08# space.
  9. 09#
  10. 10# additionally, comments (such as these) may be inserted on inpidual
  11. 11# lines or following the machine name denoted by a '#' symbol.
  12. 12#
  13. 13# for example:
  14. 14#
  15. 15# 102.54.94.97 rhino.acme.com # source server
  16. 16# 38.25.63.10 x.acme.com # x client host
  17. 17127.0.0.1 localhost
  18. 18127.0.0.1 localhost
复制代码

# 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

分享到:

相关信息

  • 内网外网同时上网怎么设置?

    内网外网同时上网怎么设置?如果用户的计算机拥有两张网卡,设置内网外网同时上网很麻烦吗?其实也还好,主要的问题就是配置路由表,将不同的网卡设置不同的路由表中就可以让内网与外网同时使用而互不干扰。...

    2017-08-17

  • Java如何实现线程同步?线程同步的方法和反面教材

    Java线程同步是保证多线程状态下安全访问竞争资源的一种编程手段,但线程的同步在Java多线程编程中算是一个比较难的难点,很多开发者甚至都不知道什么是竞争资源,也不知道时候需要进行线程同步。...

    2017-08-17

系统教程栏目

栏目热门教程

人气教程排行

站长推荐

热门系统下载