hosts 的问题(专家请进)

来源:百度知道 编辑:UC知道 时间:2024/05/15 17:33:50
以下为我的机器hosts 的内容
# 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

请问正常吗 另外
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host

您好,关于您的问题,您的HOSTS文件是没问题的。
至于您说的那两行,那只是文件中给你举的两个例子,但是每行前面都加上了"#"已经代表这行被注释了,也就不起作用了,真正起作用的是“127.0.0.1 localhost”这行。