求助,谁有win7原版hosts

求助,谁有win7原版hosts,第1张

 win7原始hosts文件其实是一个全为注释的文件而已,所以无需特别内容,直接按以下步骤 *** 作:1、桌面空白处右击,点击新建---文本文件;

2、无需输入任何内容;

3、点击文件菜单另存为命令;

4、输入文件名hosts,保存类型所有文件,点击保存即可;

*** 作方法如下:

1、首先打开C:\windows\system32\drivers\etc文件夹,删除其中的hosts文件;

2、点击开始,点击所有程序,点击附件,点击记事本

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

4、点击文件菜单保存命令,存储路径选择C:\windows\system32\drivers\etc,文件名输入hosts,保存类型选择所有文件,点击保存即可。

打开电脑的系统盘(一般默认为c盘):c盘

->

windows

->

system32

->

drives

->

etc

->

hosts文件

将hosts

文件已记事本的方式打开,注意最好是使用记事本,因为hosts文件对格式的要求非常严格,可能不同的软件打开,格式是不一样的,那样host是不能配置成功的

将需要加入的host地址,加入hosts

文件中,如果需要在加入的host地址添加注释,可以在注释语句前加入

“#”

保存hosts文件,重启浏览器,输入地址即可

5

如果在配置完成后,不能访问网站,则重新打开hosts文件,看文件的格式是否正确,如果不正确,修改后,保存

,再次访问

6

配置完成后,hosts

文件示例(应网友需求添加)


欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/tougao/8067052.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-04-13
下一篇 2023-04-13

发表评论

登录后才能评论

评论列表(0条)

保存