xp下载站:安全绿色手机应用,手机游戏下载基地!

XP下载站 > 系统教程 > Win10系统hosts文件空白怎么办 Win10系统hosts文件空白解决方法

Win10系统hosts文件空白怎么办 Win10系统hosts文件空白解决方法

作者:佚名 来源:xp下载站 时间:2023-11-29 15:59

  Hosts是一个没有扩展名的系统文件,可以用记事本等工具打开,这个很多小伙伴都会使用,但是最近有小伙伴发现Win10系统hosts文件空白怎么办,突然就变的空白,不知道怎么解决,那么下面小编就带给大家Win10系统hosts文件空白解决方法。快一起来看看吧!

Win10系统hosts文件空白怎么办

  查找hosts文件方法:

  方法一:是通过路径查找:

  c:\windows\system32\drivers\etc

  方法二:是通过运行(快捷键Win+R)输入“路径”查找。

  解决方法:

  进入文件夹以后,找到hosts文件,如果打开为空,则复制以下内容保存即可。(如果出现不能编辑的情况,先把hosts文件复制到桌面,修改保存以后,在复制回到该路径下)

  # Copyright (c) 1993-1999 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

  127.0.0.1 localhost