hosts文件为空怎么办?

hosts文件为空怎么办?,第1张

用户HOSTS文件是在“c:\卜喊高windows\system32\drivers\etc

打开记事本,以管理员身份打开hosts文件

打开后hosts文件是空的,不用渗罩担心,原本hosts文件是空型尺的,都是后期人为加上去的

先复制下面这段后放入文件然后保存: 

# 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.

#

这样就好了~

你好!其实,这个文件只是一个[IP地册如址数据库],用来处理

加快域名解析[自定义域名]

屏蔽广告晌携/插件等。

由于系统都用IP/域名访问系统官网,所以删了/空白也没问题。

附hosts文件原文,您可以用记事本打开C:\windows\system32\drivers\etc\hosts(Windows XP/2000/Vista/7/8/8.1/10)或C:/Windows(Windows 95/98/Me)粘贴(其实也没有用,就是一堆注释):

# 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


欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/tougao/12169986.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-05-21
下一篇 2023-05-21

发表评论

登录后才能评论

评论列表(0条)

保存