In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces how linux compiles the kernel, which has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, let the editor take you to understand it.
What is Linux system Linux is a free-to-use and free-spread UNIX-like operating system, is a POSIX-based multi-user, multi-task, multi-threaded and multi-CPU operating system, using Linux can run major Unix tools, applications and network protocols.
1. Download the required kernel version
2. Upload to the operating system
3. Decompress to / usr/src directory
For example: 3.19 kernel
Tar-xvf linux-3.19.tar.xz-C / usr/src
4. Create a connection
Cd / usr/src
Ln-sv / usr/src/linux-3.19 Linux
5. Set the kernel
Cd / usr/src/linux
Make menuconfig
In this step, it is best to copy a previously run .config file and make changes on this file, otherwise, the restart may not work.
Such as the following:
Cp / boot/config-3.10.0-123.el7.x86_64 / usr/src/linux/.config
6. Compile the kernel
Make-may range from 1 hour to 3 hours.
Make modules_install
Make install
7. Restart.
Content expansion
Deploy kernel source code
Open the terminal and change the user rights to root. To do this, enter sudo su at the terminal, and then follow the prompts to enter the password. Determine whether the root user uses the whoami command, and if the output is root, it has been switched to the root account.
Type mv linux-2.6.36.tar.gz / usr/src to move the downloaded kernel source code files to the / usr/src directory.
Enter cd / usr/src to change to this directory.
Type tar zxvf linux-2.6.36.tar.gz to extract the kernel package, and the generated source code is placed in the linux-2.6.36 directory.
Enter cd linux-2.6.36 and change to that directory.
Enter cp / boot/config-, and press Tab, and the system will automatically fill in the qualified file name in that directory, and then continue typing .config in order to use the original configuration file in the boot directory.
Thank you for reading this article carefully. I hope the article "how to compile the kernel of linux" shared by the editor will be helpful to everyone. At the same time, I also hope that you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!
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.