Reference Source: http://www.linuxidc.com/Linux/2014-10/108768.htm
1. Yum Update (upgrade to latest version)
2, source upgrade (upgrade to the specified version)
Https://www.kernel.org/pub/linux/kernel/v3.x/linux-3.12.40.tar.gz
Tar XF linux-3.12.40.tar.gz
CP-RV linux-3.12.40/usr/src/
cd/usr/src/linux-3.12.40
1), Make Menuconfig
Kernel configuration interface, if you need to customize the kernel, you can choose according to the prompts
2), make Oldconfig
If you are customizing the kernel, you do not need to perform this step
Use the current system kernel configuration file for the kernel source to be compiled
The. config file will be created in the current directory
Compiling the installation
3), make [-JN]
N is a number, such as Make-j4 split 4 job Tasks parallel compilation, faster compilation speed
Using make-j does not limit the task book for parallel compilation, but the error rate may be higher
4), Make Modules_install
Installing kernel Modules
5), make install
Installing the kernel
6), reboot
Restart
Linux kernel Upgrade