方法有两个:
一、自己创建hosts文件
1、桌面右键,新建文本文档,将横线内容复制到文本文档中。
————————————————————————————————
# 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
————————————————————————————————————
2、点击记事本文件,保存。
3、右键保存的文本文档,重命名,将名字改成hosts(不需要扩展名)
4、出现提示,点击确定即可。(如果没出现,请先到文件夹的工具,文件夹选项显示文件扩展名)
5、然后将文件复制到 c:\windows\system32\drivers\etc即可。
二、可以复制其他电脑上的hosts文件到 c:\windows\system32\drivers\etc文件夹。
复制前可以对照第一种法方中hosts文件内容作为参考。
1.可以从别的电脑上copy一个
2.自己手动建一个:新建一个记事本文件,命名为hosts,注意扩展名要去掉,然后话到windows\system32\etc下
里面的内容可以是空的。
在到网上搜索里面的内容复制到新建的就可以了
不可以恢复,你可以用别的电脑穿个给你
别的电脑恢复
回收站回恢复