技术编辑处理win7系统hosts文件损坏的处理方式

时间:2020-05-13 作者:admin

今天小编告诉大家如何处理win7系统hosts文件损坏的问题,可能很多用户都不知道怎么处理win7系统hosts文件损坏的问题,但当我们遇到win7系统hosts文件损坏的问题怎么办呢?遇到这种情况不要着急,我们依照    1、在win7系统中先找到hosts文件的所在文件夹,其实是位于c:\windows\system32\drivers\etc项中;  2、使用快捷键“win+r”打开运行,输入c:\windows\system32\drivers\etc按回车,就可以找到了;就可以了;还有不会处理win7系统hosts文件损坏问题的朋友,跟着下面的步骤一起学习一下吧。

    1、在win7系统中先找到hosts文件的所在文件夹,其实是位于c:\windows\system32\drivers\etc项中;

Win7系统hosts文件损坏的解决方法

      2、使用快捷键“win+r”打开运行,输入c:\windows\system32\drivers\etc按回车,就可以找到了;

Win7系统hosts文件损坏的解决方法

      3、把hosts文件复制到桌面,用记事本打开;

Win7系统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     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

Win7系统hosts文件损坏的解决方法

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

Win7系统hosts文件损坏的解决方法

     关于Win7系统hosts文件损坏的解决方法就给大家介绍到这边了,有遇到这样情况的用户们可以按照上面的方法来解决吧。

 

以上就是小编为大家带来的win7系统hosts文件损坏的解决方法有需要的用户们可以采取上面的方法步骤来进行操作吧,希望这个小小的经验能够帮助大家不再烦恼!