win7 hosts文件损坏被恶意篡改怎么办 win7系统 hosts文件修复方法
时间:2022-06-06 11:30:06
hosts文件是一个没有扩展名的系统文件,其主要作用是加快域名解析,让系统快速打开网页,最近有朋友问小编win7 hosts文件损坏被恶意篡改怎么办?不要着急下面小编给大家带来了win7系统 hosts文件修复方法,一起看下吧
Hosts是一个没有扩展名的系统文件,可以用记事本等工具打开,其作用就是将一些常用的网址域名与其对应的IP地址建立一个关联“数据库”,当用户在浏览器中输入一个需要登录的网址时,系统会首先自动从Hosts文件中寻找对应的IP地址,一旦找到,系统会立即打开对应网页,如果没有找到,则系统再会将网址提交DNS域名解析服务器进行IP地址的解析。当用户输入一个网址后,系统会从hosts文件中寻找对应的IP地址,然后浏览器才能打开网页。如果碰到hosts文件损坏了或者被恶意篡改了要怎么办呢?下面就一起来看看hosts文件修复方法。
1、首先我们需要找到hosts文件在哪里,其位于c:\windows\system32\drivers\etc项中。
![win7 hosts文件损坏被恶意篡改怎么办 win7系统 hosts文件修复方法](https://img.aspxhome.com/file/2023/28/a244075_0.jpg)
2、你可以直接按组合键win+r打开运行,输入c:\windows\system32\drivers\etc按回车,就可以找到了。
![win7 hosts文件损坏被恶意篡改怎么办 win7系统 hosts文件修复方法](https://img.aspxhome.com/file/2023/28/a244075_1.jpg)
3、找到hosts文件后将其复制到桌面,用记事本打开。
![win7 hosts文件损坏被恶意篡改怎么办 win7系统 hosts文件修复方法](https://img.aspxhome.com/file/2023/28/a244075_2.jpg)
4、删除记事本的全部内容,将以下内容复制到文件中然后保存:
![win7 hosts文件损坏被恶意篡改怎么办 win7系统 hosts文件修复方法](https://img.aspxhome.com/file/2023/28/a244075_3.jpg)
# 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系统 hosts文件修复方法 网站的支持!
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
word 表格部件库在哪找到
![](https://img.aspxhome.com/file/2023/5/32665_0s.png)
Win7系统如何隐藏任务栏应用图标?任务栏图标的隐藏方法
![](https://img.aspxhome.com/file/2023/27/a229982_0s.jpg)
苹果自研芯片Mac即将上线:我是现在买intel的Mac,还是等Arm的Mac
![](https://img.aspxhome.com/file/2023/6/a209776_0s.png)
电脑WPS文档怎么设置拼写检查
![](https://img.aspxhome.com/file/2023/2/a184192_0s.jpg)
Win10安装驱动时蓝屏错误cmudaxp.sys的解决方法
![](https://img.aspxhome.com/file/2023/26/a226237_0s.jpg)
excel最后几位全是0怎么办
![](https://img.aspxhome.com/file/2023/3/a140483_0s.png)
excel设置怎么表格第一行不动
word2013怎么修改文字方向?
![](https://img.aspxhome.com/file/2023/3/20393_0s.jpg)
移动WPS如何从工作表生成打印文件来打印办公文件
![](https://img.aspxhome.com/file/2023/4/a169554_0s.jpg)
wps如何设置单元格行列高度
INDIRECT函数——汇总多个工作表同一单元格值成一列
![](https://img.aspxhome.com/file/2023/7/a142077_0s.gif)
在打开的下拉列表中选择自定义排序选项
使用WPS2009的插件平台
![](https://img.aspxhome.com/file/2023/4/a167214_0s.jpg)
wps文字如何使用书签功能
Excel“页面布局”视图在需要打印的工作表中的常见操作技巧
Apple ID 被盗用的 5 个征兆,遇到其中一种,建议赶快改密码
![](https://img.aspxhome.com/file/2023/6/a204736_0s.jpeg)
解决WPS文字崩溃、打不开的问题
Excel如何冻结首行
![](https://img.aspxhome.com/file/2023/1/55111_0s.gif)