当前位置: win7下载网 > win10系统教程 > win10系统恢复hosts文件的问题怎么办

win10系统恢复hosts文件的问题怎么办

时间:2021-09-19 12:42:24 来源:www.cnomit.cn 作者:佚名 浏览次数:

大家对电脑都爱不释手,但偶尔会碰见对win10系统恢复hosts文件进行设置的问题,相信大家都是第一次面对win10系统恢复hosts文件的问题,那么怎样快速对win10系统恢复hosts文件的问题进行设置呢?我们只需要按1、打开此电脑,依次打开:C:\Windows\System32\drivers\etc  “hosts”文件的目录中; 2、选择【新建】—【文本文档】;的顺序来就搞定了,现在我们就一同详细的学习一下win10系统恢复hosts文件具体操作步骤:

1、打开此电脑,依次打开:C:\Windows\System32\drivers\etc  “hosts”文件的目录中;

Win10删除hosts文件后如何恢复?win10如何恢复hosts文件?

2、选择【新建】—【文本文档】;

Win10删除hosts文件后如何恢复?win10如何恢复hosts文件?


3、双击【打开新建文本文档.txt】,将以下代码复制进去,然后关闭,在提示框中点击【保存】;

# 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
 

4、将【新建文本文档.txt】右键,选择重命名,将后面的TXT删除,然后命名为:hosts ,在弹出的框中点击“是”即可。
 
Win10删除hosts文件后如何恢复?win10如何恢复hosts文件?

有用户可能会遇到“新建文本文档”后面没有显示【TXT】的情况,则通过【显示扩展名】的方法即可显示TXT了。

以上就是关于win10系统恢复hosts文件的操作方法,还有不会的朋友可以按照上面的步骤来解决,小编会竭尽所能把大家想知道的电脑知识分享开来。

相关教程