有朋友肯定遇到过win10系统恢复hosts文件的情况,如果我们需要对win10系统恢复hosts文件进行设置时,要怎么处理呢?接下来小编就给大家带来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 ,在弹出的框中点击“是”即可。
本篇关于win10系统恢复hosts文件到这里就讲解完了,希望可以帮助到大家。
如果你有任何疑问可以点击网站顶部的意见反馈,小编将第一时间进行回复。
311 个用户觉得很有用
发表评论