host修复不起作用(电脑hosts异常的修复)
  • 来源:互联网
  • 发布时间:2026-04-02 08:14:33

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 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:windowssystem32driversetc来替换以前的hosts文件,即可完成修复。

其他文章

  • 晋江丁一酒业贸易有限公司注册成功-酒业贸易公司注册-晋江注册公司
  • 北京盛世华章科技有限公司注册成功-科技公司注册-北京注册公司
  • 利川市博标劳务有限公司注册成功-劳务公司注册-利川注册公司
  • 广州优上科技有限公司注册成功-科技公司注册-广州注册公司
  • 集安市李飞商贸有限公司注册成功-商贸公司注册-集安注册公司
  • 潮之适(江门)生物科技有限公司注册成功-生物科技公司注册-江门注册公司
  • 佛山市晨清科技有限公司注册成功-科技公司注册-佛山注册公司
  • 京中(天津)纳米材料科技有限公司注册成功-纳米材料科技公司注册-天津注册公司
  • 温州昱鸥生物科技有限公司注册成功-生物科技公司注册-温州注册公司
  • 山东锦元防腐保温工程有限公司注册成功-防腐保温工程公司注册-山东注册公司