呂鴻
2016-06-16
最終答案
hosts文件修改方法是:1、Hosts文件主要是定義IP地址和主機(jī)名的映射關(guān)系,是一個(gè)映射IP地址和主機(jī)名的規(guī)定,它可以用文本打開(kāi),當(dāng)用戶(hù)在瀏覽器中輸入一個(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è)的一種方法;2、Hosts文件位置在windows xp/2003/vista/2008/7/8用戶(hù)HOSTS文件在“c:\windows\system32\drivers\etc;3、Hosts文件修復(fù)(1)將hosts文件復(fù)制到桌面,用記事本打開(kāi);(2)刪除記事本的全部?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;(3)將修改后的hosts文件放入c:\windows\system32\drivers\etc替換以前的hosts文件,修復(fù)完成。