C:\WINDOWS\system32\drivers\etc中的hosts文件无故自动丢失?
我WINDOWS\system32\drivers\etc目下录的HOSTS文件经常莫名其妙的丢失,虽然我有备份,但由于我有些游戏需要用到这个文件,所以我经常要手工复制进...
我WINDOWS\system32\drivers\etc目下录的HOSTS文件经常莫名其妙的丢失,虽然我有备份,但由于我有些游戏需要用到这个文件,所以我经常要手工复制进去非常麻烦,请问是什么原因导致HOSTS文件会频繁丢失的呢?
展开
3个回答
2013-10-22
展开全部
放心,这个东西对你来说,是完全没有影响的.
hosts文件的作用是指定IP和计算机名(域名)的关系...一般情况下, 电脑在搜索其它电脑的计算机名(域名)时,会先检查一下这个文件里有没有包含所需找的计算机名,如果有,就直接使用所指定的IP来通信,如果没有,如发广播来寻找...
如果你真想恢复原来的文件的话...可以通过以下的简单步骤来恢复.
桌面-->空白处-->鼠标右键-->新建-->文本文档-->输入(127.0.0.1 localhost)括句内的内容-->文件-->另存为-->"C:\WINDOWS\system32\drivers\etc\hosts"-->大功造成....(前面的"C:\WINDOWS\system32\drivers\etc\hosts"前后两个双引号是一个要的!)
教你自己做一个
方法是:
1、在资源管理器下进入系统目录下windows\system32\drivers\etc;
2、在该目录下建立一个TXT文件,命名为hosts.txt,用记事本打开;
3、复制下面的内容到这个文件里:
# 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
IP地址 网址
4、保存退出;
5、重新命名该文件,从hosts.txt命名为hosts
6、进入浏览器就可以访问该站了(如果是站点的原因则此方法无效)
hosts文件的作用是指定IP和计算机名(域名)的关系...一般情况下, 电脑在搜索其它电脑的计算机名(域名)时,会先检查一下这个文件里有没有包含所需找的计算机名,如果有,就直接使用所指定的IP来通信,如果没有,如发广播来寻找...
如果你真想恢复原来的文件的话...可以通过以下的简单步骤来恢复.
桌面-->空白处-->鼠标右键-->新建-->文本文档-->输入(127.0.0.1 localhost)括句内的内容-->文件-->另存为-->"C:\WINDOWS\system32\drivers\etc\hosts"-->大功造成....(前面的"C:\WINDOWS\system32\drivers\etc\hosts"前后两个双引号是一个要的!)
教你自己做一个
方法是:
1、在资源管理器下进入系统目录下windows\system32\drivers\etc;
2、在该目录下建立一个TXT文件,命名为hosts.txt,用记事本打开;
3、复制下面的内容到这个文件里:
# 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
IP地址 网址
4、保存退出;
5、重新命名该文件,从hosts.txt命名为hosts
6、进入浏览器就可以访问该站了(如果是站点的原因则此方法无效)
本回答被网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
2013-10-22
展开全部
教你自己做一个
方法是:
1、在资源管理器下进入系统目录下windows\system32\drivers\etc;
2、在该目录下建立一个TXT文件,命名为hosts.txt,用记事本打开;
3、复制下面的内容到这个文件里:
# 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
IP地址 网址
4、保存退出;
5、重新命名该文件,从hosts.txt命名为hosts
6、进入浏览器就可以访问该站了(如果是站点的原因则此方法无效)
方法是:
1、在资源管理器下进入系统目录下windows\system32\drivers\etc;
2、在该目录下建立一个TXT文件,命名为hosts.txt,用记事本打开;
3、复制下面的内容到这个文件里:
# 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
IP地址 网址
4、保存退出;
5、重新命名该文件,从hosts.txt命名为hosts
6、进入浏览器就可以访问该站了(如果是站点的原因则此方法无效)
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询