The current system is CentOSLinuxrelease6.4 (Final), and the kernel version is 2.6.32-358. el6.i686. upgrade the kernel to the latest version 3.4.56. 1. view the current system kernel # uname-r22.6.32-358.el6.i6862, download the linux-3.4.56 kernel package # cd ~ # Wget-chttps: // ww the current system is CentOS Linux Release 6.4 (Final), kernel version 2.6.32-358. el6.i686. upgrade the kernel to the latest version 3.4.56.
1. view the current system kernel
# uname -r2 2.6.32-358.el6.i686
2. download the linux-3.4.56 kernel package
# cd ~# wget -c https://www.kernel.org/pub/linux/kernel/v3.x/linux-3.4.56.tar.xz# tar -Jxvf linux-3.4.56.tar.xz# mv linux-3.4.56 /usr/src/linux-3.4.56# cd linux-3.4.56
3. configure and install the kernel
# Make mrproper # clear environment variables, that is, clear the configuration file # make menuconfig # select the kernel module to be compiled in menu mode
# Make clean # make sure everything is up-to-date. # make bzImage # Generate the kernel file # make modules # compilation module # make modules_install # installation module # make install # installation
4. Edit/Etc/grub. confFileDefault = 1ChangeDefault = 0
# cat /etc/grub.conf# grub.conf generated by anaconda## Note that you do not have to rerun grub after making changes to this file# NOTICE: You have a /boot partition. This means that# all kernel and initrd paths are relative to /boot/, eg.# root (hd0,0)# kernel /vmlinuz-version ro root=/dev/mapper/VolGroup-lv_root# initrd /initrd-[generic-]version.img#boot=/dev/sdadefault=1timeout=3splashimage=(hd0,0)/grub/splash.xpm.gzhiddenmenutitle CentOS (3.4.56) root (hd0,0) kernel /vmlinuz-3.4.56 ro root=UUID=2c06f495-2f8c-4930-8968-9c612d32edc1 rd_NO_LUKS KEYBOARDTYPE=pc KEYTABLE=us rd_NO_MD crashkernel=auto LANG=zh_CN.UTF-8 rd_NO_LVM rd_NO_DM rhgb quiet initrd /initramfs-3.4.56.imgtitle CentOS (2.6.32-358.14.1.el6.i686) root (hd0,0) kernel /vmlinuz-2.6.32-358.14.1.el6.i686 ro root=UUID=2c06f495-2f8c-4930-8968-9c612d32edc1 rd_NO_LUKS KEYBOARDTYPE=pc KEYTABLE=us rd_NO_MD crashkernel=auto LANG=zh_CN.UTF-8 rd_NO_LVM rd_NO_DM rhgb quiet initrd /initramfs-2.6.32-358.14.1.el6.i686.imgtitle CentOS (2.6.32-358.el6.i686) root (hd0,0) kernel /vmlinuz-2.6.32-358.el6.i686 ro root=UUID=2c06f495-2f8c-4930-8968-9c612d32edc1 rd_NO_LUKS KEYBOARDTYPE=pc KEYTABLE=us rd_NO_MD crashkernel=auto LANG=zh_CN.UTF-8 rd_NO_LVM rd_NO_DM rhgb quiet initrd /initramfs-2.6.32-358.el6.i686.img
5. restart the system and view the kernel
# reboot# uname -r3.4.56