部分用戶說安裝程序?qū)е耯osts文件受損,win7專業(yè)版系統(tǒng)hosts文件受損有什么影響?Hosts是一個沒有擴(kuò)展名的系統(tǒng)文件,可以用記事本等工具打開,其作用就是將一些常用的網(wǎng)址域名與其對應(yīng)的IP地址建立一個關(guān)聯(lián)“數(shù)據(jù)庫”,當(dāng)用戶在瀏覽器中輸入一個需要登錄的網(wǎng)址時,系統(tǒng)會首先自動從Hosts文件中尋找對應(yīng)的IP地址。如果遇到hosts文件受損問題,不妨參考下文來解決。
具體操作方法如下:
1、先找到hosts文件的所在文件夾,其實是位于c:\windows\system32\drivers\etc項中;
2、使用快捷鍵“win+r”打開運行,輸入c:\windows\system32\drivers\etc按回車,就可以找到了;
3、把hosts文件復(fù)制到桌面,用記事本打開;
4、刪除記事本的全部內(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
5、接著把修改后的hosts文件放到c:\windows\system32\drivers\etc來替換以前的hosts文件,就可以完成修復(fù);
6、作為沒有擴(kuò)展名的系統(tǒng)文件,hosts文件主要用于加快域名解析,使得系統(tǒng)快速打開網(wǎng)頁。
以上就是?win7系統(tǒng)hosts文件受損的修復(fù)方法,我們就可以通過上面小編整理的方法來解決問題了,可將此方法分享給身邊的朋友。
共0條
評論就這些咯,讓大家也知道你的獨特見解
以上留言僅代表用戶個人觀點,不代表系統(tǒng)城立場
周
月
深度win11系統(tǒng)下載 深度技術(shù)win11系統(tǒng)合集推薦
聯(lián)想筆記本win11系統(tǒng)合集
系統(tǒng)
軟件
安卓
文章