主机本地主机是否始终可用于自己的系统? [英] Is the host localhost always available for the own system?

查看:82
本文介绍了主机本地主机是否始终可用于自己的系统?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否始终可以ping通localhost并解析为127.0.0.1?

Is it always possible to ping localhost and it resolves to 127.0.0.1?

我知道Windows Vista,XP,Ubuntu和Debian可以做到,但是每个人都做到吗?

I know Windows Vista, XP, Ubuntu and Debian do it but does everyone do it?

推荐答案

任何正确的TCP/IP实现都将保留地址127.0.0.1以引用本地计算机.但是,名称"localhost"到该地址的映射通常取决于系统hosts文件.如果要从hosts中删除本地主机条目,则本地主机名称可能根本无法正确解析.

Any correct implementation of TCP/IP will reserve the address 127.0.0.1 to refer to the local machine. However, the mapping of the name "localhost" to that address is generally dependent on the system hosts file. If you were to remove the localhost entry from hosts, then the localhost name may no longer resolve properly at all.

这篇关于主机本地主机是否始终可用于自己的系统?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆