系統(tǒng)之家 - 系統(tǒng)光盤下載網(wǎng)站!

當前位置:系統(tǒng)之家 > 系統(tǒng)教程 > Hosts文件修復方法

Hosts文件異常怎么弄?Hosts文件修復方法

時間:2017-06-12 09:27:46 作者:quers 來源:系統(tǒng)之家 1. 掃描二維碼隨時看資訊 2. 請使用手機瀏覽器訪問: https://m.xitongzhijia.net/xtjc/20170612/99899.html 手機查看 評論

  Hosts文件的主要作用是可以加快某個域名或網(wǎng)站的解析速度,來達到快速訪問某個網(wǎng)站的目的,當然,Hosts文件還可以屏蔽網(wǎng)站,重新定向網(wǎng)站域名等作用,如果用戶計算機中的Hosts被改的面目全非,可以看看下文Hosts文件修復方法。

  Hosts文件是什么?

  Hosts文件主要作用是定義IP地址和主機名的映射關(guān)系,是一個映射IP地址和主機名的規(guī)定。可以用文本文件打開!當用戶在瀏覽器中輸入一個需要登錄的網(wǎng)址時,系統(tǒng)會首先自動從Hosts文件中尋找對應(yīng)的IP地址,一旦找到,瀏覽器會立即打開對應(yīng)網(wǎng)頁,如果沒有找到,則瀏覽器會將網(wǎng)址提交DNS服務(wù)器進行IP地址解析。這也是提高快速打開網(wǎng)頁的方法!

Hosts文件異常怎么弄?Hosts文件修復方法

  Hosts文件位置在哪里?

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

Hosts文件異常怎么弄?Hosts文件修復方法

  你可以直接根據(jù)上述路徑進入,也可Win+R后輸入:C:\Windows\System32\drivers\etc

Hosts文件異常怎么弄?Hosts文件修復方法

  Hosts文件修復方法:

  1、將hosts文件復制到桌面,用記事本打開!

Hosts文件異常怎么弄?Hosts文件修復方法

  2、刪除記事本的全部內(nèi)容,將以下內(nèi)容復制后放入文件然后保存:

  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 individual 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 individual
  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 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

Hosts文件異常怎么弄?Hosts文件修復方法

  3、將修改后的hosts文件放入C:\Windows\System32\drivers\etc替換以前的hosts文件,修復成功!

Hosts文件異常怎么弄?Hosts文件修復方法

  以上便步驟便是Hosts文件修復方法,只要將Hosts文件還原到默認狀態(tài),就不會有任何問題。

標簽 Hosts

發(fā)表評論

0

沒有更多評論了

評論就這些咯,讓大家也知道你的獨特見解

立即評論

以上留言僅代表用戶個人觀點,不代表系統(tǒng)之家立場

其他版本軟件

人氣教程排行

相關(guān)系統(tǒng)推薦

官方交流群 軟件收錄