win7 hosts文件修复方法步骤

win7 hosts文件修复方法步骤

hosts文件是一个没有扩展名的系统文件,主要作用就是加快域名的解析,让我们的系统能够快速的打开网页,如果我们遇到hosts文件损坏或者被恶意的篡改了应该怎么办呢,今天就给大家分享一下win7hosts文件修复方法步骤。

win7 hosts文件修复方法步骤

1、首先我们需要找到hosts文件在哪里,其位于c:windowssystem32driversetc项中。

win7 hosts文件修复

2、你可以直接按组合键win+r打开运行,输入c:windowssystem32driversetc按回车,就可以找到了。

win7 hosts文件修复

3、找到hosts文件后将其复制到桌面,用记事本打开。

win7 hosts文件修复

4、删除记事本的全部内容,将以下内容复制到文件中然后保存:

hosts文件修复

#Copyright(c)1993-2009MicrosoftCorp.##ThisisasampleHOSTSfileusedbyMicrosoftTCP/IPforWindows.##ThisfilecontainsthemappingsofIPaddressestohostnames.Each#entryshouldbekeptonanindividualline.TheIPaddressshould#beplacedinthefirstcolumnfollowedbythecorrespondinghostname.#TheIPaddressandthehostnameshouldbeseparatedbyatleastone#space.##Additionally,comments(suchasthese)maybeinsertedonindividual#linesorfollowingthemachinenamedenotedbya'#'symbol.##Forexample:##102.54.94.97rhino.acme.com#sourceserver#38.25.63.10x.acme.com#xclienthost

#localhostnameresolutionishandledwithinDNSitself.#127.0.0.1localhost#::1localhost

5、然后将修改后的hosts文件放到c:windowssystem32driversetc来替换以前的hosts文件,即可完成修复。

hosts文件修复

以上就是hosts文件修复方法,如果你也想更改hosts文件不妨参考以上步骤尝试着操作解决,希望可以帮助到大家。

(1)
上一篇 2021年12月8日 下午1:22
下一篇 2021年12月8日 下午1:28

猜你喜欢

电话

联系我们

1388-0022-916

在线咨询:点击这里给我发消息

邮件:1395700887@qq.com

工作时间:周一至周日,9:30-18:30,节假日无休

微信
微信
分享本页
返回顶部