hosts是一個(gè)沒有擴(kuò)展名的系統(tǒng)文件,其作用就是將一些常用的網(wǎng)址域名與其對(duì)應(yīng)的IP地址建立一個(gè)關(guān)聯(lián)“數(shù)據(jù)庫”,方便用戶們快速訪問,那么如果遇到hosts文件損壞的話該怎么辦呢?下面以win7 64位旗艦版系統(tǒng)為例,給大家講解一下hosts文件損壞的解決方法。
1、在win7系統(tǒng)中先找到hosts文件的所在文件夾,其實(shí)是位于c:\windows\system32\drivers\etc項(xiàng)中;
2、使用快捷鍵“win+r”打開運(yùn)行,輸入c:\windows\system32\drivers\etc按回車,就可以找到了;
3、把hosts文件復(fù)制到桌面,用記事本打開;
4、刪除記事本的全部?jī)?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ù)。
關(guān)于Win7系統(tǒng)hosts文件損壞的解決方法就給大家介紹到這邊了,有遇到這樣情況的用戶們可以按照上面的方法來解決吧。
網(wǎng)友評(píng)論