In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly shows you "how to add kernel parameters through GRUB on Linux". The content is easy to understand and clear. I hope it can help you solve your doubts. Let me lead you to study and learn this article "how to add kernel parameters through GRUB on Linux".
Add kernel parameters through GRUB on Linux.
If you are using the GRUB bootloader and want to modify or add kernel parameters, you can edit the GRUB configuration file. Here is how to add kernel startup parameters to the configuration file of GRUB for a specific distribution.
Add kernel startup parameters to Debian or Ubuntu
On Debian-based systems, if you want to add kernel parameters at system startup, you can edit the GRUB configuration template in the / etc/default/grub directory. Add kernel parameters in the format "name=value" in the GRUB_CMDLINE_LINUX_DEFAULT variable.
$sudo-e / etc/default/grubGRUB_CMDLINE_LINUX_DEFAULT= ".name=value"
Then run the following command to generate a configuration file for GRUB.
$sudo update-grub
If you can't find the update-grub command, you can install it with the following command.
$sudo apt-get install grub2-common
Add kernel startup parameters to Fedora
On Fedora, to add kernel parameters at startup, you can edit the GRUB configuration template in the / etc/default/grub directory. Add kernel parameters in the format "name=value" in the GRUB_CMDLINE_LINUX variable.
$sudo-e / etc/default/grubGRUB_CMDLINE_LINUX= ".name=value"
Then run the following command to generate the GRUB2 configuration file.
$sudo grub2-mkconfig-o / boot/grub2/grub.cfg
Add kernel startup parameters to CentOS
On CentOS, to add kernel parameters at startup, you can edit the GRUB configuration file / boot/grub/grub.conf directly. In the configuration file, find the entry that describes the Linux image used by default. The string "default=N" in the top line of the file indicates which entry is the default image.
When the default image entry is found, add kernel parameters to the end of the paragraph that starts with "kernel / vmlinuz-". The format of parameter is "name=value".
The above is all the content of the article "how to add kernel parameters through GRUB on Linux". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow 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.