::1
和 fe80::1%lo0
看起来真是邪门啊, 如何理解?
➤➤ cat /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 pages flower-mud drafts gtasks
255.255.255.255 broadcasthost
::1 localhost
fe80::1%lo0 localhost
::1
-》 连续的0可以用::
表示。
fe80::1%lo0
这个要拆开来看:
-
fe80
开始的网段用于本地直连的地址。 -
%lo0
其中lo0
是interface,类似的还有%eth0
之类的。