最近更新|軟件分類(lèi)|單機(jī)游戲|軟件專(zhuān)題|手機(jī)版|軟件發(fā)布 host是什么 host文件怎么修復(fù)
首頁(yè)>網(wǎng)絡(luò)安全>host是什么 host文件怎么修復(fù)

host是什么 host文件怎么修復(fù)

我要評(píng)論2017/06/13 17:03:25來(lái)源:9553下載編輯:

host文件的主要作用是可以加快某個(gè)域名或網(wǎng)站的解析速度,來(lái)達(dá)到快速訪問(wèn)某個(gè)網(wǎng)站的目的,那么怎么修復(fù)host文件呢?請(qǐng)往下看!

host是什么 host文件怎么修復(fù)

host是什么

Hosts文件主要作用是定義IP地址和主機(jī)名的映射關(guān)系,是一個(gè)映射IP地址和主機(jī)名的規(guī)定??梢杂梦谋疚募蜷_(kāi)!當(dāng)用戶在瀏覽器中輸入一個(gè)需要登錄的網(wǎng)址時(shí),系統(tǒng)會(huì)首先自動(dòng)從Hosts文件中尋找對(duì)應(yīng)的IP地址,一旦找到,瀏覽器會(huì)立即打開(kāi)對(duì)應(yīng)網(wǎng)頁(yè),如果沒(méi)有找到,則瀏覽器會(huì)將網(wǎng)址提交DNS服務(wù)器進(jìn)行IP地址解析。這也是提高快速打開(kāi)網(wǎng)頁(yè)的方法!

host是什么 host文件怎么修復(fù)

Hosts文件位置在哪里?

Windows XP/2003/Vista/2008/7/8/8.1/10用戶Hosts文件是在:C:WindowsSystem32driversetc

host是什么 host文件怎么修復(fù)

你可以直接根據(jù)上述路徑進(jìn)入,也可Win+R后輸入:C:WindowsSystem32driversetc

host是什么 host文件怎么修復(fù)

Hosts文件修復(fù)方法

1、將hosts文件復(fù)制到桌面,用記事本打開(kāi)!

host是什么 host文件怎么修復(fù)

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

01# copyright (c) 1993-1999 microsoft corp.

02#

03# this is a sample hosts file used by microsoft tcp/ip for windows.

04# this file contains the mappings of ip addresses to host names. each

05# entry should be kept on an individual line. the ip address should

06# be placed in the first column followed by the corresponding host name.

07# the ip address and the host name should be separated by at least one

08# space.

09#

10# additionally, comments (such as these) may be inserted on individual

11# lines or following the machine name denoted by a '#' symbol.

12#

13# for example:

14#

15# 102.54.94.97 rhino.acme.com # source server

16# 38.25.63.10 x.acme.com # x client host

17127.0.0.1 localhost

18127.0.0.1 localhost

host是什么 host文件怎么修復(fù)

3、將修改后的hosts文件放入C:WindowsSystem32driversetc替換以前的hosts文件,修復(fù)成功!

host是什么 host文件怎么修復(fù)

關(guān)鍵詞: host