当前位置:首页 > 系统教程 > Win10教程 > 详细页面

win10系统恢复hosts文件的技巧

时间:2019-06-21来源:老毛桃一键重装作者:佚名

win10系统想必大家都非常熟悉吧,然而有时候可能会碰到win10系统对win10系统恢复hosts文件进行设置,比如近日有用户到本站反映说对win10系统恢复hosts文件设置的情况,到底该怎么设置win10系统恢复hosts文件呢?我们只用按照1、打开此电脑,依次打开:C:\Windows\System32\drivers\etc  “hosts”文件的目录中; 2、选择【新建】—【文本文档】;这样去操作就可以成功设置了;接下来就给大家讲解一下关于win10系统恢复hosts文件的详细操作步骤:

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



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




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 ,在弹出的框中点击“是”即可。
 


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

分享到:

相关信息

  • Win10系统怎么将控制面板添加到桌面?

    说到控制面板,相信很多人都会使用到。但是平常打开控制面板的步骤,都有点多。而且部分用户觉得开始菜单中没有控制面板,觉得操作不太方便。那么如何将控制面板添加到移到桌面?下面一起来看看具体的操作方法吧! 方法一...

    2019-12-30

  • win10系统如何关闭msiexec.exe进程

    msiexec.exe是windows系统的程序文件,主要是用来给windows安装新程序,当我们使用update安装更新或者安装一些软件的时候,msiexec.exe进程就会出现,而且占用内存比较大,最近有位win10系统用户使用电...

    2019-12-29