Win7系統(tǒng)Hosts文件在哪里?怎么修復(fù)Hosts文件
Hosts文件是一個沒有擴(kuò)展名的系統(tǒng)文件,主要是能夠加快域名解析和屏蔽網(wǎng)站等功能。Hosts文件是個好東西,可以幫助我們有效的屏蔽各種各樣的惡意網(wǎng)站,從保護(hù)了我們的電腦。我們還可以對其添加或者修改,不過還有很多在使用Win7系統(tǒng)的用戶來說,Hosts存放在的哪個地方還不知道?下面就和大家詳細(xì)說一下Win7系統(tǒng)hosts文件在哪里,怎么修復(fù)hosts文件。

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

二、Hosts文件位置在哪里
1、Windows xp/2003/vista/2008/7/8用戶Hosts文件是在“c:windowssystem32driversetc

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

三、Hosts文件怎么修復(fù)
1、將Hosts文件復(fù)制到桌面,用記事本打開!

2、刪除記事本的全部內(nèi)容,將以下內(nèi)容復(fù)制后放入文件然后保存:
# 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

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

以上就是關(guān)于Win7系統(tǒng)hosts文件在哪里,怎么修復(fù)hosts文件的全部內(nèi)容了。有需要的用戶可以根據(jù)上面的方法就能夠找到hosts文件的存放位置了。不妨去試一下就知道了。
相關(guān)文章:
1. Win10電腦打開軟件黑屏閃退怎么辦?2. Win10更新過程中卡住怎么辦?Win10更新過程中卡住的解決方法3. Win10電腦怎么一鍵釋放系統(tǒng)資源?Win10電腦一鍵釋放系統(tǒng)資源的操作方法4. Win11桌面沒有圖標(biāo)怎么解決?Win11桌面沒有圖標(biāo)解決教程5. Win7文件夾選項(xiàng)在哪里?Win7文件夾選項(xiàng)的位置6. Win10系統(tǒng)日歷怎么設(shè)置?Win10設(shè)置日歷教程7. Win11有哪些不能用的軟件?8. Win11硬盤安裝方法介紹 Win11系統(tǒng)硬盤安裝教程9. Kylin(麒麟系統(tǒng)) 同時掛載USB閃存盤和移動硬盤的方法及注意事項(xiàng)10. Win11退回正版Win10怎么操作?Win11回退Win10教程
