当前位置:主页 > U盘装系统教程 > 大白菜u盘装系统win7出现hosts文件损坏的修复方法

大白菜u盘装系统win7出现hosts文件损坏的修复方法

时间:2017-03-16 浏览次数:200 作者:牧尘

  大白菜u盘装系统win7出现hosts文件损坏的修复方法,作为没有扩展名的系统文件hosts,主要是用于加快域名解析,使得系统快速打开网页,这对于用户来说可是很重要的文件,但是最近有用户反映,用大白菜u盘装系统win7后,电脑出现hosts文件损坏的情况,怎么样才能修复hosts文件呢?下面就给大家讲讲大白菜u盘装系统win7出现hosts文件损坏的修复方法。

  hosts文件损坏修复方法:

  1、先在c:\windows\system32\drivers\etc项中,查看hosts文件。

hosts文件损坏

  2、按下快捷键win+r,打开运行,并输入c:\windows\system32\drivers\etc按回车。

hosts文件损坏(1)

  3、这个时候需要找到hosts文件,把它其复制到桌面,用记事本打开。

hosts文件损坏(2)

  4、接着需要删除记事本的全部内容,并把以下内容复制到文件中进行保存:

hosts文件损坏(3)

  # 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文件,就可以完成修复了。

hosts文件损坏(4)

  以上就是大白菜u盘装系统win7出现hosts文件损坏的修复方法,希望小编的分享能够帮助到有需要的用户。

------分隔线------
U盘装系统软件排行榜