localhost.jpg (186.67 KB, 下载次数: 6)
黎志勇 发表于 2014-6-12 12:40
你前面加了#号啊,注释掉,当然不起作用。
黎志勇 发表于 2014-6-12 12:45
# Copyright (c) 1993-2009 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP f ...
黎志勇 发表于 2014-6-12 12:52
我把自己电脑的host清空了,再自己添加了下,表示没问题啊。你ping一下试试。
...
ip.jpg (155.51 KB, 下载次数: 7)
sina.jpg (73.27 KB, 下载次数: 11)
Gaara33 发表于 2014-6-12 13:08
我把#号去掉,ping了一下,确实和你的一样,然后输入网址,的确正常了,但是不清楚为什么刚才就不行
另 ...
黎志勇 发表于 2014-6-12 13:14
127.0.0.1是特殊的,系统固定好localhost就对应这个IP,就算把host文件清空,localhost也对应127.0.0.1。 ...
欢迎光临 黑马程序员技术交流社区 (http://bbs.itheima.com/) | 黑马程序员IT技术论坛 X3.2 |