hosts 文件修改
文件地址一般都 C:/WINDOWS/system32/drivers/etc
如果修改后忘记 看1
如果修改后不能保存 看2
1 可以直接桌面新建文件复制下面代码覆盖原有的hosts文件
# 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 如果文件修改后不能保存(简单粗暴好用)
直接右键-用360强力删除hosts 然后从新建立 一个hosts 就Ok了
网友评论