【发布时间】:2016-05-21 18:05:10
【问题描述】:
在这里,“ping localhost”可以正常工作,但“ping http://localhost”不能。它说:“ping:无法解析http://127.0.0.1:未知主机”
在浏览器上键入 localhost 时,它显示“连接失败”。谁能帮我解决这个问题?
/etc/hosts 内容:
##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
【问题讨论】: