系统粉 > 系统教程 > win10系统教程

win10如何重置hosts文件?Win10 hosts文件修复!

发布时间:2017-04-06 21:43:58    浏览数:
在win10系统中,有些时候我们从网上下载了包含恶意插件的软件安装后会篡改Hosts,导致我们浏览器主页打开后变成其他网址,那么该如何修复hosts文件呢?下面小编给大家分享下重置方法。

步骤:

1、按下“Win+R”组合键打开运行,在框中输入:WinDir%\System32\Drivers\Etc 点击确定打开hosts文件所在文件夹;

win10如何重置hosts文件?Win10 hosts文件修复!(1)

2、在hosts文件上单击鼠标右键,在弹出的菜单中选择【打开方式】;

win10如何重置hosts文件?Win10 hosts文件修复!(2)

3、选中【记事本】,点击【确定】;

win10如何重置hosts文件?Win10 hosts文件修复!(3)

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
win10如何重置hosts文件?Win10 hosts文件修复!(4)

5、点击关闭按钮,在弹出的提示框中点击【保存】即可。

win10如何重置hosts文件?Win10 hosts文件修复!(5)


完成以上操作就成功的重置hosts文件了。

相关文章:

Win10 hosts文件不能修改怎么办?
上一篇:Win10右键菜单"显示卡属性"和"配置可交换显示卡"选项怎么去除? 下一篇:Win10连接移动硬盘提示:文件或目录损坏且无法读取 怎么解决?

win10相关教程