当前位置:网站首页>localhost与127.0.0.1
localhost与127.0.0.1
2022-07-30 14:11:00 【黄昏四点半】
域名
域名是Internet上某一台计算机或计算机组的名称,用于在数据传输时标识计算机的电子方位。
域名是由一串用点分隔的名字组成的,通常包含组织名,而且始终包括两到三个字母的后缀,以指明组织的类型或该域所在的国家或地区。
DNS域名服务器
DNS(Domain Name Server)是进行域名(domain name)和与之相对应的IP地址 (IP address)转换的服务器。
DNS中保存了一张域名和与之相对应的IP地址 的表,以解析消息的域名。
域名服务器保存有该网络中所有主机的域名和对应IP地址,并具有将域名转换为IP地址功能。
其中域名必须对应一个IP地址,一个域名可以有多个IP地址,而IP地址不一定有域名。
本地域名服务器
DNS是计算机域名系统 (Domain Name System/Domain Name Service),它是由域名解析器和域名服务器组成的。
DNS解析过程及原理
localhost与127.0.0.1
localhost:
本地服务器
不经网卡传输
不受网络防火墙和网卡相关的的限制。
127.0.0.1:
本机地址(本机服务器)
通过网卡传输,依赖网卡
受到网络防火墙和网卡相关的限制
一般设置程序时本地服务首选用localhost,localhost不会解析成IP,不会占用网卡、网络资源。当使用localhost访问时,系统带的本机当前用户的权限去访问;而用ip的时候,等同于本机是通过网络再去访问本机。
边栏推荐
- 桌面软件开发框架大赏
- Baijiahao cancels the function of posting documents on the interface: the weight of the plug-in chain is blocked
- DocuWare 文件管理与工作流程自动化案例研究——DocuWare 工作流程功能使在家工作的员工能够保持沟通和高效工作,支持混合环境
- Eight years of testing experience, why was the leader criticized: the test documents you wrote are not as good as those of fresh graduates
- Cookie simulation login "recommended collection"
- 关于String的一些思考
- Web3创始人和建设者必备指南:如何构建适合的社区?
- LoRaWAN网关源码分析(V1.0.2)
- 地形分析的主要内容(流浪地球的特效水平)
- Conversion between pytorch and keras (the code takes LeNet-5 as an example)
猜你喜欢

手把手教你写让人眼前一亮的软件测试简历,收不到面试邀请算我输

What is the relationship between the construction of smart cities and 5G technology in the new era

一文读懂网络效应对Web3的重要意义

学习 MySQL 需要知道的 28 个小技巧

5. DOM

容器排序案例

VLAN实验

Baijiahao cancels the function of posting documents on the interface: the weight of the plug-in chain is blocked

内容产品进化三板斧:流量、技术、产品形态

ROS 导航
随机推荐
(一)Multisim安装与入门
我为何从开发人员转做测试,3年软件测试工程师,带你聊聊这其中的秘辛
[深入研究4G/5G/6G专题-46]: 5G Link Adaption链路自适应-2-常见缩略语
华为7年经验的软件测试总监,给所有想转行学软件测试的朋友几点建议
No-code development platform application visible permission setting introductory tutorial
Eclipse connects to SQL server database "recommended collection"
Still saying software testing doesn't have a midlife crisis?9 years of test engineers were eliminated
Six-faced ant financial clothing, resisting the bombardment of the interviewer, came to interview for review
Get the Google Advertising ID as a unique identifier
3年软件测试经验面试要求月薪22K,明显感觉他背了很多面试题...
浅析显卡市场的未来走向:现在可以抄底了吗?
Android jump to google app market
Remember an experience of interviewing an outsourcing company, should you go?
自动化测试之数据驱动DDT详细篇
3 years of software testing experience, the interview requires a monthly salary of 22K, obviously he has memorized a lot of interview questions...
ESP32 Repeated Reboot Issue Arduino Shield Power Outage Detector
What is the relationship between the construction of smart cities and 5G technology in the new era
The truth of the industry: I will only test those that have no future, and I panic...
5. DOM
Flask框架——Flask-SQLite数据库