分享

/etc/hosts看不懂啊?

xiaolongwu1987 发表于 2013-10-16 13:41:55 [显示全部楼层] 回帖奖励 阅读模式 关闭右栏 1 4405
我的/etc/hosts内容是:
127.0.0.1        localhost
127.0.1.1        xiaowu-945PL-S3       ######这应该是我的打印机
# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
为什么http://www.cnblogs.com/wayne1017/archive/2007/03/20/678724.html#commentform这人的是127.0.0.0呢?????请教啊。
还有,我的IP是202.204.100.45,为什么localhost里面没有呢?是不是要手动写进去?
              
               
               

已有(1)人评论

跳转到指定楼层
yaojiank 发表于 2013-10-16 13:42:40

            是127.0.0.1
另外你的外网ip不需要写到hosts里
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

推荐上一条 /2 下一条