步骤1
打开进入【我的电脑】,双击进入C盘。
步骤2
从上方的路径【C盘 Windows System32 drivers etc】找到【hosts】。
步骤3
选中后,鼠标右击,选择【用记事本打开该文件】。
步骤4
删除记事本的全部内容,将以下内容复制后放入文件然后保存:
# 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
127.0.0.1 localhost
步骤5
将修改后的hosts文件放入C:\Windows\System32\drivers\etc替换以前的hosts文件即可。
标签: 20210819