如何恢复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.
#
# 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
# 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
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
方法一 、复制法
这是一种最简单的方法,就是先将hosts文件复制到别的地方,修改完了再覆盖回来就搞定了。中间会提示目标文件夹拒绝访问,需要提供管理员权限,点击继续即可。
方法二 、记事本更改法
1、在win7开始菜单中找到“记事本”,并右击它,选择“Run as administrator”(以管理员运行);
2、接着即可用记事本打开hosts文件,hosts文件路径的是C:\Windows\System32\drivers\etc\hosts;
3、打开hosts文件之后,再写好自己的hosts语句,直接保存就可以了。
这是一种最简单的方法,就是先将hosts文件复制到别的地方,修改完了再覆盖回来就搞定了。中间会提示目标文件夹拒绝访问,需要提供管理员权限,点击继续即可。
方法二 、记事本更改法
1、在win7开始菜单中找到“记事本”,并右击它,选择“Run as administrator”(以管理员运行);
2、接着即可用记事本打开hosts文件,hosts文件路径的是C:\Windows\System32\drivers\etc\hosts;
3、打开hosts文件之后,再写好自己的hosts语句,直接保存就可以了。
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
2013-09-25
展开全部
# 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
上述文字是原件内容,实际上#的都是注释文字,起作用的就最后行。
#
# 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
上述文字是原件内容,实际上#的都是注释文字,起作用的就最后行。
本回答被网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
2013-09-25
展开全部
去别人电脑拷一个进去就可以了
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询