操作方法
打开电脑里面的系统盘,一般是C盘,然后打开以此打开“C:\Windows\System32\drivers\etc”
这个就是传说中的“host”文件。
为了安全起见,可以先备份这个文件。复制这个文件到桌面。然后鼠标右键选择“打开方式”
选择用“记事本”打开。
这个里面就是host文件的内容。默认内容如下“ # 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 0.0.0.1 mssplus.mcafee.com ”
根据我们的需要,可以在最后面加入相应的信息。
点击“文件”,保存,然后直接替换到系统盘的host文件。