hosts文件在哪 hosts文件修复方法_咋弄装机网

hosts文件是一个没有扩展名的系统文件,它的主要作用是能加快域名解析,还可以屏蔽网站等。那么遇到hosts文件损坏或者被恶意篡改了怎么办?下面一起来看看hosts文件修复方法。hosts文件修复方法:1、首先我们需要找到hosts文件在哪里,我们依次打开c:windowssystem32driversetc项,如下图所示:找到hosts文件2、你也可以按组合键win+r打开运行,输入c:windowssystem32driversetc按回车,如下图所示:输入命令按回车3、找到hosts文件后将其复制到桌面,然后用笔记本打开,如下图所示:记事本打开hosts4、删除记事本的全部内容,将以下内容复制到文件中然后保存,如下图所示:#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文件受损想修复的朋友不妨按照上面方法进行操作,希望对大家有帮助。

(0)
上一篇 2021年8月18日 上午12:04
下一篇 2021年8月18日 上午12:22

猜你喜欢

电话

联系我们

1388-0022-916

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

邮件:1395700887@qq.com

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

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