发表时间:2017-03-31来源:网络
hosts文件是一个没有扩展名的系统文件,它的主要作用是能加快域名解析,还可以屏蔽网站等。那么遇到hosts文件损坏或者被恶意篡改了怎么办?下面一起来看看hosts文件修复方法。
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 inpidual 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 inpidual# 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文件,即可完成修复。

以上就是hosts文件修复方法,有遇到hosts文件受损想修复的朋友不妨按照上面方法进行操作,希望对大家有帮助。
下一篇:u盘装系统导致电脑白屏怎么办
皓盘云建最新版下载v9.0 安卓版
53.38MB |商务办公
ris云客移动销售系统最新版下载v1.1.25 安卓手机版
42.71M |商务办公
粤语翻译帮app下载v1.1.1 安卓版
60.01MB |生活服务
人生笔记app官方版下载v1.19.4 安卓版
125.88MB |系统工具
萝卜笔记app下载v1.1.6 安卓版
46.29MB |生活服务
贯联商户端app下载v6.1.8 安卓版
12.54MB |商务办公
jotmo笔记app下载v2.30.0 安卓版
50.06MB |系统工具
鑫钜出行共享汽车app下载v1.5.2
44.7M |生活服务
2011-02-12
2011-02-15
2011-02-12
2011-02-14
2011-02-12
2011-02-12
2011-02-15
2011-02-13
2024-05-13
2011-02-13