- 相關(guān)推薦
win7 hosts文件修復(fù)方法
hosts文件是一個(gè)沒有擴(kuò)展名的系統(tǒng)文件,其主要作用是加快域名解析,讓系統(tǒng)快速打開網(wǎng)頁。當(dāng)用戶輸入一個(gè)網(wǎng)址后,系統(tǒng)會(huì)從hosts文件中尋找對(duì)應(yīng)的IP地址,然后瀏覽器才能打開網(wǎng)頁。如果碰到hosts文件損壞了或者被惡意篡改了要怎么辦呢?下面就一起來看看hosts文件修復(fù)方法。
1、首先我們需要找到hosts文件在哪里,其位于c:windowssystem32driversetc項(xiàng)中。
2、你可以直接按組合鍵win+r打開運(yùn)行,輸入c:windowssystem32driversetc按回車,就可以找到了。
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 ed 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:windowssystem32driversetc來替換以前的hosts文件,即可完成修復(fù)。
以上就是hosts文件修復(fù)方法,如果你也想更改hosts文件不妨參考以上步驟嘗試著操作解決,希望可以幫助到大家。
【win7 hosts文件修復(fù)方法】相關(guān)文章:
hosts文件位置在哪10-06
Windows系統(tǒng)Hosts文件的作用10-29
PPT文件無法打開的修復(fù)方法08-11
Windows系統(tǒng)中Hosts文件作用06-19
win7如何共享文件09-01
Win7系統(tǒng)文件類型10-08
excel文件修復(fù)全攻略精選10-30
win7斷網(wǎng)修復(fù)工具08-25
win7怎么修改文件類型10-21
win7隱藏文件怎么顯示09-03