当前位置:手机游戏 > 手游资讯 > 新手问答 

hosts文件修复(hosts文件修复方法)

作者:哪吒游戏网

hosts文件修复(hosts文件修复方法),哪吒游戏网给大家带来详细的hosts文件修复(hosts文件修复方法)介绍,大家可以阅读一下,希望这篇hosts文件修复(hosts文件修复方法)可以给你带来参考价值。

hosts文件是一个没有扩展名的系统文件,它的主要作用是能加快域名解析,还可以屏蔽网站等。那么遇到hosts文件损坏或者被恶意篡改了怎么办?下面一起来看看hosts文件修复方法。

hosts文件修复方法:

1、首先我们需要找到hosts文件在哪里,我们依次打开c:\windows\system32\drivers\etc项,如下图所示:

2、你也可以按组合键win+r打开运行,输入c:\windows\system32\drivers\etc按回车,如下图所示:

3、找到hosts文件后将其复制到桌面,然后用笔记本打开hosts文件修复,如下图所示:

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

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

#localhostnameresolutionishandledwithinDNSitself.#127.0.0.1localhost#::1localhost

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

以上就是hosts文件修复方法,有遇到hosts文件受损想修复的朋友不妨按照上面方法进行操作,希望对大家有帮助。具体可参考:hosts文件修复方法

总结:以上内容就是针对hosts文件修复(hosts文件修复方法)详细阐释,如果您觉得有更好的建议可以提供给哪吒游戏网小编,hosts文件修复(hosts文件修复方法)部分内容转载自互联网,有帮助可以收藏一下。