Win7 64位系统电脑中hosts文件损坏了该怎么修复 |
来源: 发布时间:2017-11-16 15:18:25 |
说到hosts文件,相信大部分用户都不会陌生,这是一个没有扩展名的系统文件,它的主要作用是加快域名解析,让系统快速打开网页。当我们在浏览器中输入某个网址后,系统会从hosts文件中寻找对应的IP地址,然后浏览器才可以正常打开网页。但是在win7 64位系统中,有的小伙伴却遇到了hosts文件损坏的情况,那么这个时候应该怎么办呢?下面小编就给大家分享一下Win7 64位系统电脑中hosts文件损坏了的修复方法,一起来看看吧。 1、首先我们需要找到hosts文件在哪里,其位于c:\windows\system32\drivers\etc项中。
2、你可以直接按组合键win+r打开运行,输入c:\windows\system32\drivers\etc按回车,就可以找到了。
3、找到hosts文件后将其复制到桌面,用记事本打开。
4、删除记事本的全部内容,将以下内容复制到文件中然后保存:
# 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文件,即可完成修复。
以上就是今天小编给大家分享的Win7 64位系统电脑中hosts文件损坏了的修复方法了,按照以上方法操作后,电脑hosts文件损坏的问题就可以轻松解决了,碰到这种情况的小伙伴不妨试一试,希望可以帮到大家。 [上一个]:小编教你处理win7系统中无法搜索到更新的故障
[下一个]:Win7系统中怎么处理无法安装显卡nvidia的操作教程 |