当前位置:网站首页>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的时候,等同于本机是通过网络再去访问本机。
边栏推荐
- No-code development platform application visible permission setting introductory tutorial
- [深入研究4G/5G/6G专题-46]: 5G Link Adaption链路自适应-2-常见缩略语
- 关于容器的小案例
- #第九章 子查询课后习题
- Start learning C language
- eclipse连接SQL server数据库「建议收藏」
- SLF4J的使用
- Recommended open source tools: MegPeak, a high-performance computing tool
- Eight years of testing experience, why was the leader criticized: the test documents you wrote are not as good as those of fresh graduates
- Why do software testing have to learn automation?Talk about the value of automated testing in my eyes
猜你喜欢

00 testers of seasoning after nearly a year, whether to change careers or to learn the software testing students summarized the following heart advice

LeetCode二叉树系列——102.二叉树的层序遍历

PyQt5快速开发与实战 9.1 使用PyInstaller打包项目生成exe文件

No-code development platform application visible permission setting introductory tutorial

A new generation of open source free terminal tools, so cool

How to use Databricks for data analysis on TiDB Cloud | TiDB Cloud User Guide

Eight years of testing experience, why was the leader criticized: the test documents you wrote are not as good as those of fresh graduates

这个编辑器居然号称快如闪电!

八年测试经验,为何惨遭领导痛批:你写的测试文档还不如刚来的应届生

(一)Multisim安装与入门
随机推荐
开始学习C语言了
CS内网横向移动 模拟渗透实操 超详细
打破原则引入SQL,MongoDB到底想要干啥?
产品年度营销计划书
eclipse连接SQL server数据库「建议收藏」
六面蚂蚁金服,抗住面试官的狂轰乱炸,前来面试复盘
【回归预测-lssvm分类】基于最小二乘支持向量机lssvm实现数据分类代码
cookie模拟登录「建议收藏」
Androd 跳转到google应用市场
Flask Framework - Flask-Mail Mail
Allure进阶-动态生成报告内容
CVE-2022-33891 Apache Spark 命令注入复现
地形分析的主要内容(流浪地球的特效水平)
ccs软件的使用(靠谱挣钱的app软件)
ESP32 Repeated Reboot Issue Arduino Shield Power Outage Detector
NFTScan 与 PANews 联合发布多链 NFT 数据分析报告
数字信号处理课程实验报告(数字信号处理需要什么基础)
(一)Multisim安装与入门
ESP32 反复重启问题 Arduino屏蔽断电探测器
HCIP(第十五天) —— 交换机(一)