當前位置:係統粉 >  係統教程 > win10係統教程 >  win10如何重置hosts文件?Win10 hosts文件修複!

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

時間:2017-04-06 來源:互聯網 瀏覽量:

在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文件不能修改怎麼辦?
我要分享:
版權信息

Copyright @ 2011 係統粉 版權聲明 最新發布內容 網站導航