Hosts文件是不带扩展名的系统文件。主要作用是加快域名解析,使我们的系统能够快速打开网页。如果hosts文件被损坏或恶意篡改,该怎么办?今天,我们将分享恢复win7 hosts文件的方法步骤。
1、首先我们需要找到hosts文件在哪里,其位于c:windowssystem32driversetc项中。
2、你可以直接按组合键win+r打开运行,输入c:windowssystem32driversetc按回车,就可以找到了。
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 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 r # 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:windowssystem32driversetc来替换以前的hosts文件,即可完成修复。
以上就是hosts文件修复方法,如果你也想更改hosts文件不妨参考以上步骤尝试着操作解决,希望可以帮助到大家。
1.《win7 hosts文件修复方法步骤》援引自互联网,旨在传递更多网络信息知识,仅代表作者本人观点,与本网站无关,侵删请联系页脚下方联系方式。
2.《win7 hosts文件修复方法步骤》仅供读者参考,本网站未对该内容进行证实,对其原创性、真实性、完整性、及时性不作任何保证。
3.文章转载时请保留本站内容来源地址,https://www.cxvn.com/gl/djyxgl/194934.html