要这个干什么呀?
默认里面的内容如下
# 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
右键单击改文件,选择[属性]
切换到[安全]选项卡,单击中间的那个[编辑]
在“组或用户名”里选择自拿老蔽己的那个账户(如:Users (乐乐-PC\Users))
勾选下面“完全控制”的[允许]复选框
单击[应用]后就可以修改该文件了
打开“开始”菜单,点击“所有程序”,找到“附件”中的“记事本”:
右键单击“记事本”,选择“以管理员身份运行”;
这时d出一个新的记事本窗口,点击“文件”菜单,选择“打开”;
在“打开”对话框中通过下拉菜单选择到“C:\Windows\System32\drivers\etc”这个文件夹;
点击右下角的文件格式下拉列表,选择“所有文件”;
这时就可以看到hosts文件了(没有的话,自行创建个记事本在这个目录下即可枝备),双击就可以打开逗或文件进行修改,修改完成后可以保存生效山搭伍,hosts原始文件内容:
Localhost 127.0.0.1
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)