Hosts文件路径在哪里?Hosts文件异常怎么修复?-环球聚看点

来源:科技时报网时间:2023-06-06 09:28:50

Hosts文件路径在哪里?

Windows XP/2003/Vista/2008/7/8/8.1/10用户Hosts文件是在:C:\Windows\System32\drivers\etc

你可以直接根据上述路径进入,也可Win+R后输入:C:\Windows\System32\drivers\etc

Hosts文件异常怎么修复?

1、将hosts文件复制到桌面,用记事本打开!

2、删除记事本的全部内容,将以下内容复制后放入文件然后保存:

01# copyright (c) 1993-1999 microsoft corp.

02#

03# this is a sample hosts file used by microsoft tcp/ip for windows.

04# this file contains the mappings of ip addresses to host names. each

05# entry should be kept on an individual line. the ip address should

06# be placed in the first column followed by the corresponding host name.

07# the ip address and the host name should be separated by at least one

08# space.

09#

10# additionally, comments (such as these) may be inserted on individual

11# lines or following the machine name denoted by a '#' symbol.

12#

13# for example:

14#

15# 102.54.94.97 rhino.acme.com # source server

16# 38.25.63.10 x.acme.com # x client host

17127.0.0.1 localhost

18127.0.0.1 localhost

复制代码# 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 127.0.0.1 localhost

Hosts文件异常怎么弄?Hosts文件修复方法

3、将修改后的hosts文件放入C:\Windows\System32\drivers\etc替换以前的hosts文件,修复成功!

标签: Hosts文件路径在哪里 Hosts文件异常怎

责任编辑:FD31
上一篇:交通肇事罪构成要件有哪些?交通肇事逃逸处罚规定_热文
下一篇:谷歌搜索集成AI功能 被吐槽回答通常很冗长 天天要闻

精彩图集(热图)

热点图集

最近更新

信用中国

  • 信用信息
  • 行政许可和行政处罚
  • 网站文章