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

时间:2023-08-29 06:30:49 

Hosts文件的主要作用是可以加快某个域名或网站的解析速度,来达到快速访问某个网站的目的,当然,Hosts文件还可以屏蔽网站,重新定向网站域名等作用,如果用户计算机中的Hosts被改的面目全非,可以看看下文Hosts文件修复方法。

Hosts文件是什么?

Hosts文件主要作用是定义IP地址和主机名的映射关系,是一个映射IP地址和主机名的规定。可以用文本文件打开!当用户在浏览器中输入一个需要登录的网址时,系统会首先自动从Hosts文件中寻找对应的IP地址,一旦找到,浏览器会立即打开对应网页,如果没有找到,则浏览器会将网址提交DNS服务器进行IP地址解析。这也是提高快速打开网页的方法!

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

Hosts文件位置在哪里?

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

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

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

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

Hosts文件修复方法:

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

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

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

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

  2. 02#

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

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

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

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

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

  8. 08# space.

  9. 09#

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

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

  12. 12#

  13. 13# for example:

  14. 14#

  15. 15# 102.54.94.97 rhino.acme.com # source server

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

  17. 17127.0.0.1 localhost

  18. 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 host127.0.0.1 localhost127.0.0.1 localhost

标签:Hosts
0
投稿

猜你喜欢

  • Excel绝对值的计算有哪些方法

    2023-12-01 21:18:36
  • excel 表格显示不全最常见的就是列宽不够,拉宽或者双击列标,使之让excel表格完全显示

    2022-12-06 05:36:11
  • 怎么设置手机wps为默认?

    2022-12-24 06:57:07
  • Excel中快速输入函数括号和数据的操作方法

    2023-05-12 07:41:46
  • excel表格添加分割线的方法步骤

    2022-11-01 21:54:42
  • 如何禁止Win10预览版自动更新驱动?

    2023-09-24 13:06:24
  • Excel可以做游戏?这么神奇吗?

    2022-03-16 15:50:15
  • Win10内置杀毒软件Windows Defender打不开怎么办?

    2022-06-16 01:14:04
  • 苹果MAC安装Win10后iTunes提示错误代码-54的解决办法

    2023-11-20 02:51:46
  • Win10如何开启病毒防护功能?Win10开启病毒防护功能的操作方法

    2022-11-08 18:53:13
  • WPS红字怎么调不了颜色?

    2022-10-29 11:16:19
  • 微软Win10是关键一步要造一个不需要密码的世界

    2023-04-30 20:59:25
  • Win7系统开机未能启动kavbootc.sys文件丢失修复方法

    2023-09-13 01:23:19
  • WPS演示教程:利用创建播放器方式在wpp中插入flash

    2023-09-10 04:49:12
  • PDF Squeezer for Ma无法启动怎么办?PDF Squeezer Mac常见问题解答

    2022-01-22 20:12:49
  • 使用Word制作公章的详细方法

    2022-04-29 09:05:09
  • 在excel文档中怎么修改字体呢?

    2023-08-23 06:35:39
  • 制作PPT时如何暂时隐藏不需要的图片

    2022-03-12 22:30:02
  • wps2019怎么删除重复数据?wps2019删除重复项教程

    2023-03-27 04:57:40
  • Win10专业版怎么打开软键盘?

    2023-12-06 18:52:55
  • asp之家 电脑教程 m.aspxhome.com