时间:2017-08-17来源:东坡网作者:quers
Hosts文件的主要作用是可以加快某个域名或网站的解析速度,来达到快速访问某个网站的目的,当然,Hosts文件还可以屏蔽网站,重新定向网站域名等作用,如果用户计算机中的Hosts被改的面目全非,可以看看下文Hosts文件修复方法。
Hosts文件是什么?
Hosts文件主要作用是定义IP地址和主机名的映射关系,是一个映射IP地址和主机名的规定。可以用文本文件打开!当用户在浏览器中输入一个需要登录的网址时,系统会首先自动从Hosts文件中寻找对应的IP地址,一旦找到,浏览器会立即打开对应网页,如果没有找到,则浏览器会将网址提交DNS服务器进行IP地址解析。这也是提高快速打开网页的方法!
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、删除记事本的全部内容,将以下内容复制后放入文件然后保存:
# 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 inpidual 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 inpidual # 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
2022-05-12
Logitech G Hub卡在安装界面上一直转圈怎么办?2022-05-10
为什么Ctrl+Alt+A快捷键不能截屏?2022-05-07
近期显卡持续降低,有必要等40系列显卡吗?电脑如何选购固态硬盘?在电脑中一般有固态硬盘和机械硬盘,而固态硬盘由于优秀的读写速度,受到众多电脑爱好者的优先选择权,今天小编就带着大家一起看看怎么选择吧! 选购固态硬盘(SSD)前的4个步骤 1、看接口 - 确认主板支持的...
2022-05-06
许多用户在使用电脑的时候,都会选择一个好用的键盘,而目前市面上的键盘拥有青轴、黑轴、红轴、茶轴、银轴,那么不同的轴体有什么区别呢?下面小编就为大家讲解一下吧! 机械键盘轴体种类非常多,青轴、黑轴、红轴、茶轴、银轴...
2022-05-06