来源于:

https://access.redhat.com/solutions/1551183

环境

  • Red Hat Enterprise Linux 7

问题

  • What is Machine ID?

Raw

# hostnamectl
Machine ID: f50935fd04114b6ba00d0820cddae7f1

决议

  • The /etc/machine-id file contains the unique machine ID of the local system that is set during installation. The machine ID is a single newline-terminated, hexadecimal, 32-character, lowercase machine ID string. When decoded from hexadecimal, this corresponds with a 16-byte/128-bit string.

  • The machine ID is usually generated from a random source during system installation and stays constant for all subsequent boots. Optionally, for stateless systems, it is generated during runtime at boot if it is found to be empty.

  • The machine ID does not change based on user configuration or when hardware is replaced. This machine ID adheres to the same format and logic as the D-Bus machine ID.

  • Programs may use this ID to identify the host with a globally unique ID in the network, which does not change even if the local network configuration changes. Due to this and its greater length, it is a more useful replacement for the gethostid(3) call that POSIX specifies.

  • The systemd-machine-id-setup(1) tool may be used by installer tools to initialize the machine ID at install time. Use systemd-firstboot(1) to initialize it on mounted (but not booted) system images.

  • For more details,

Raw

 # man 5 machine-id

What is Machine ID?相关推荐

  1. machine ID问题 ( u-boot设置machine id , set mach_type 0x16a )

    machine ID问题 machine ID问题跟CPU具体到型号相关,启动时打印信息如下: Uncompressing Linux................................. ...

  2. machine id linux,linux – 机器ID是uuid吗?

    是的,现在. 这在systemd手册中有所介绍. / etc / machine-id中的值最初不是有效的UUID,因为systemd人员最初没有编写用于生成版本4 UUID的正确代码.但此后已经修复 ...

  3. u-boot移植随笔:关于u-boot引导内核出现“Error: unrecognized/unsupported machine ID (r1 = 0x33f4fee8)”的问题

    这个问题同样经典,大意是说u-boot传递的machine id不正确.在网上看到的文章几乎如出一辙:有两种方法,一是修改内核的head.S(具体在./arch/arm/kernel目录下),二是修改 ...

  4. C#,精巧实用的代码,生成机器码(Machine Id)的基础源代码

    机器码用于软件使用权限的校验等等. using System; using System.IO; using System.Text; using System.Management; using S ...

  5. linux日志idProduct,linux – 机器ID是uuid吗?

    是的,现在. 这在systemd手册中有所介绍. / etc / machine-id中的值最初不是有效的UUID,因为systemd人员最初没有编写用于生成版本4 UUID的正确代码.但此后已经修复 ...

  6. mongodb的id的唯一性_mongodb中的objectid是collection中唯一,还是全db唯一,还是全宇宙唯一?...

    5 2011-05-27 19:26:00 +08:00 @iiduce 你已提過了... ObjectID = 32bit timestamp + md5(hostname) + process-i ...

  7. 全局唯一ID发号器的几个思路

    标识(ID / Identifier)是无处不在的,生成标识的主体是人,那么它就是一个命名过程,如果是计算机,那么它就是一个生成过程.如何保证分布式系统下,并行生成标识的唯一与标识的命名空间有着密不可 ...

  8. 【架构】生成全局唯一ID的3个思路,来自一个资深架构师的总结

    标识(ID / Identifier)是无处不在的,生成标识的主体是人,那么它就是一个命名过程,如果是计算机,那么它就是一个生成过程.如何保证分布式系统下,并行生成标识的唯一与标识的命名空间有着密不可 ...

  9. 生成全局唯一ID的3个思路,来自一个资深架构师的总结

    标识(ID / Identifier)是无处不在的,生成标识的主体是人,那么它就是一个命名过程,如果是计算机,那么它就是一个生成过程.如何保证分布式系统下,并行生成标识的唯一与标识的命名空间有着密不可 ...

最新文章

  1. 11JavaScript中的对象
  2. The King of Excel Geek 0.1版本
  3. Linux下qt桌面程序闪退,qt无法正常使用
  4. cursor_sharing='SIMILAR'将被废弃
  5. php无法用mail函数发送邮件之原因
  6. Domain Socket本地进程间通信
  7. Existing lock /var/run/yum.pid: another copy is running as pid
  8. 计算机原理测试卷一,计算机原理章节测考试试卷一.doc
  9. Google 员工公开 Windows 10 零日漏洞隐藏 Bug!
  10. WEB测试—兼容测试
  11. 运输问题基本解 最小元素法
  12. 智能小车寻迹c语言程序,智能小车循迹记时测速程序
  13. 万年历c语言程序微博,简易的万年历程序C语言
  14. spider.php使用方法,phpspider爬虫框架怎么用
  15. PHP更换网页背景,更换网页的背景图
  16. 矩阵 维度 axis
  17. 服务器认证信息,认证信息管理系统、服务器、方法和程序
  18. 01-pie小游戏(基本图形的绘制)
  19. web网站--第三方登录功能
  20. 大电容滤低频,小电容滤高频 ?里面的学问大着呢!

热门文章

  1. Java对象的序列化(Serialization)和反序列化详解
  2. pci 数据捕获和信号处理控制器_大学毕业设计一席谈之十五 扩频信号的捕获 (1)...
  3. 14. 深度解读ARM新架构:大核进取、小核摆烂?
  4. 合肥工业大学2021汇编语言程序设计上机实验一
  5. Linux系统下,绑定USB串口设备号,解决上电USBID随机情况
  6. 被冰封的 Bug:Fishhook Crash 修复纪实
  7. 豆瓣电影多个作品里的海报、剧照图片怎样快速复制保存
  8. MYSQLg高级-----SQL注入的理解(初级篇)以及如何防止注入
  9. 在iPhone应用里直接打开app store 评论页面的方法
  10. deepin 命令行卸载软件