Oracle   发布时间:2022-05-17  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了关于Oracle Linux中的machine-id大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
关于Oracle linux中的machine-ID
自:

How to Change the "machine-ID" of Oracle linux 7.1 and Later (Doc ID 2127429.1)


@H_626_2@machine-ID的介绍:

  • The "machine-ID" parameter is added from Oracle linux 7.1 to IDentify the machine in the network. Therefor this parameter must be unique.
  • But when user clone the virtual machine that is installed ol7.1,the cloned virtual machine's "machine-ID" is not changed,and some virtual machine have the same "machine-ID".
  • User should change the "machine-ID" of the cloned virtual machine.

改变machine-ID的方法:

To execute the below operations on the cloned virtual machine with the "root" account.

1. Clear the original "machine-ID".

  • The "machine-ID" value is written in "/etc/machine-ID".
  • User have to clear the original value of "machine-ID" befor changing.
  • There are some ways to change the "/etc/machine-ID" file,in this case,use the "cp" command to change the original value.

Example :

# cat /etc/machine-ID
e2bd0adf084a4c289cf335da4cd2f4b4 * Original "machine-ID".
#
# cp -f /dev/null /etc/machine-ID
cp: overwrite '/etc/machine-ID'? * Clear original value.
#
# cat /etc/machine-ID
# * Value has been cleared.

2. Create the new "machine-ID" value.

  • generate a new machine-ID by the "systemd-machine-ID-setup" command and set up to the "/etc/machine-ID".

# cat /etc/machine-ID # * "/etc/machine-ID" is empty. # systemd-machine-ID-setup Initializing machine ID from random generator. * success to generate and setup the new value. # # cat /etc/machine-ID dab09965986b4ea1ba34dc7a79bb2830 * New value of "machine-ID". #

大佬总结

以上是大佬教程为你收集整理的关于Oracle Linux中的machine-id全部内容,希望文章能够帮你解决关于Oracle Linux中的machine-id所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。
标签: