Yum install-y wget gcc gc BC GD make Perl ncurses-devel XZ
: https://www.kernel.org
#tar-JXVF Linux-3.4.56.tar.xz
#mv linux-3.4.56/usr/src/linux-3.4.56
#cd/usr/src/linux-3.4.56
# make Mrproper #清除环境变量, that is, clear the configuration file
# Make Menuconfig
Increase or decrease the kernel according to your own needs. After you press the TAB key to jump to < Exit > on the menu below, enter the system and ask
wish to save your new configuration to continue.
< Yes >< No >
The menu defaults to < Yes >, press ENTER to confirm the save.
# Make Clean #确保所有东西均保持最新状态.
# Make Bzimage #生成内核文件
# Make Modules #编译模块
# Make Modules_install #安装模块
# Make Install #安装
Edit
#vi/etc/grub.conf file, change default=1 to Default=0
Reboot the system and view the kernel
# reboot
# Uname-r Reference: http://blog.sina.com.cn/s/blog_6c25b1e50101ekf2.htmlhttp://michaelkang.blog.51cto.com/1553154/1266825
CentOS upgrade Kernel (compile and install)