In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Xiaobian to share with you the use of linux kexec command directly to start another linux kernel, I believe most people do not know how, so share this article for everyone to learn, I hope you read this article after the harvest, let us go to learn the method!
The function of the kexec command is to boot directly from the currently running kernel to a new kernel.
The kexec command skips the first part of the entire bootloader phase and jumps directly to the kernel we want to boot into. No more hardware reboots and firmware operations, no more bootloader involvement. Completely avoiding the slowest part of the boot sequence. The biggest benefit of this feature is that the system can now be restarted extremely quickly.
The kernel version must be 2.6.13 or above to use the kexec command.
Syntax format: kexec [parameter]
Common parameters:
-l Specify kernel image file-e Allow currently loaded kernel-f Force immediate system call "kexec" without calling "shutdown"-t Specify new kernel type-u Unload current kexec target kernel
Reference Example
Install in the specified kernel image:
[root@linuxcool ~]# kexec -l /boot/bzImage -append="root=/dev/hda1"
Restart the loaded kernel:
[root@linuxcool ~]# kexec -e The above is all the contents of using the Linux kexec command to directly start another Linux kernel. Thank you for reading! I believe that everyone has a certain understanding, hope to share the content to help everyone, if you still want to learn more knowledge, welcome to pay attention to the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.