admin 管理员组文章数量: 1086019
2024年4月13日发(作者:interp2和griddata)
hosts文件损坏怎么办 hosts文件怎么修复
作为没有扩展名的系统文件hosts,主要是用于加快域名解析,使得系统快速打开网
页。那么,要是遇到hosts文件损坏了或者被恶意篡改的问题怎么办?今天小编来跟大家介
绍一下hosts文件怎么修复。
1、先在c:windowssystem32driversetc项中,查看hosts文件。
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 # source server# 38.25.63.10 # 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文件怎么修复 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://roclinux.cn/b/1713011896a617106.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论