专业黑客先做事后付款3_私人黑客联系方式

windows系统中都有Hosts文件,它是一个没有扩展名的系统文件,可以用记事本等工具打开,如果我们不小心删除了hosts的内容,或者永久删除hosts文件该怎么恢复?下面我们就来看看这个问题的解决办法。Hosts有什么作用?作用就是将一些常用的网址域名与其对应的IP地址建立一

windows系统中都有Hosts文件,它是一个没有扩展名的系统文件,可以用记事本等工具打开,如果我们不小心删除了hosts的内容,或者永久删除hosts文件该怎么恢复?下面我们就来看看这个问题的解决办法。

Hosts有什么作用?

作用就是将一些常用的网址域名与其对应的IP地址建立一个关联“数据库”,当用户在浏览器中输入一个需要登录的网址时,系统会首先自动从Hosts文件中寻找对应的IP地址,一旦找到,系统会立即打开对应网页,如果没有找到,则系统会再将网址提交DNS域名解析服务器进行IP地址的解析。

找到hosts文件,其中有两种方法:一是通过路径查找:c:\windows\system32\drivers\etc。二是通过运行(快捷键Win+R)输入“路径”查找。

方法一:

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

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# 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


  • 发表于 2020-12-02 11:20
  • 阅读 ( 233 )
  • 分类:互联网

0 条评论

请先 登录 后评论
糖果派对
糖果派对

705 篇文章

你可能感兴趣的文章

相关问题