发布网友 发布时间:2022-05-09 14:12
共2个回答
热心网友 时间:2024-02-01 15:49
你这样试试,用记事本打开host.txt,然后选择“另存为”,然后在文件名那里输入host(不加.txt),文件类新那里选择所有文件,然后确定追问不行..还是一样文件是文本文档追答在桌面上新建一个文本文档,取名为hosts,将下面的内容复制到里面。然后打开任意一个文件夹,点击键盘上的Alt键,这是你可以看到菜单栏跳出来,点击“工具”,选择“文件夹选项”,切换到“查看”,将下面“隐藏已知文件的扩展名”前面的勾去掉(如下图),然后选择OK。重命名桌面上的hosts.txt,将“.txt”去掉,这时你得到了一个没有后缀名的hosts文件。将hosts文件复制到C:\Windows\System32\drivers\etc就行了。
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 indivial 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 indivial
# 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
热心网友 时间:2024-02-01 15:49
从另一个电脑里复制一个过来,覆盖就行了