Step 1 download the kernel source code
Go to http://www.kernel.org/download kernel source code
Step 2 find the appropriate configuration file
You can use the configuration file I gave you to rename it as. config and put it in the source code root directory. Note that there is a "point" before config ".
You can also go to your local/boot directory to find configuration files suitable for your local machine.
Step 3 configure the kernel
# Make menuconfig configure the kernel
Step 4 compile the kernel
# Make
Step 5 compile the module
# Make modules
Part 6 installation Module
# Make modules_install
Step 7 install the kernel
# Make install
Step 8 configure the Startup File
Check whether the configuration file of grub or lilo is correctly modified. If it has been modified, you do not need to change it manually. Otherwise, you need to modify the configuration file so that the system can be booted through the new kernel at the next restart.