799系统下载网 - 最好用的系统光盘下载站!
您所在的位置:799系统下载网 > hosts文件在哪 hosts文件修复方法

文章详情

hosts文件在哪 hosts文件修复方法

时间:2025-03-31 13:24:07 https://www.799xt.com/ 作者:799系统下载网

  hosts文件是一个没有扩展名的系统文件,它的主要作用是能加快域名解析,还可以屏蔽网站等。那么遇到hosts文件损坏或者被恶意篡改了怎么办?下面一起来看看hosts文件修复方法。
 
  hosts文件修复方法:
 
  1、首先我们需要找到hosts文件在哪里,我们依次打开c:windowssystem32driversetc项,如下图所示:
 
找到hosts文件
 
  2、你也可以按组合键win+r打开运行,输入c:windowssystem32driversetc按回车,如下图所示:
 
输入命令按回车
 
  3、找到hosts文件后将其复制到桌面,然后用笔记本打开,如下图所示:
 
记事本打开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
 
删除全部内容
 
  5、然后将修改后的hosts文件放到c:windowssystem32driversetc来替换以前的hosts文件,即可完成修复。
 
替换hosts文件
 
  以上就是hosts文件修复方法,有遇到hosts文件受损想修复的朋友不妨按照上面方法进行操作,希望对大家有帮助。

本站发布的系统与软件仅为个人学习测试使用,请在下载后24小时内删除,不得用于任何商业用途,否则后果自负,请支持购买微软正版软件
如有任何问题,请及时反馈通知我们,我们会及时处理。邮箱:xitong66666@163.com 网站地图
备案号:闽ICP备2023003222号-1