升级前
 uname -a
Linux localhost.localdomain 2.6.18-194.el5 #1 SMP Tue Mar 16 21:52:39 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux
升级后
 uname -a
Linux localhost.localdomain 2.6.27 #1 SMP Wed Aug 18 19:23:14 CST 2010 x86_64 x86_64 x86_64 GNU/Linux
过程
1.下载http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.27.tar.gz
# tar zxvf linux-2.6.27.tar.gz -C /usr/src
# cd /usr/src/linux-2.6.27
# make menuconfig
# make (可能要很长时间)
# make modules_install
# cp arch/x86_64/boot/bzImage /boot/vmlinuz-2.6.27-yourname
(注意:目录i386是根据你的系统类型, 如果是64位系统, 那就很可能是x86_64)
# cp System.map /boot/System.map-2.6.27-yourname
# mkinitrd /boot/initrd-2.6.27-yourname.img 2.6.27
# vi /etc/grub.conf
title Red Hat Enterprise Linux Server (2.6.18-194.el5)
        root (hd0,0)
        kernel /vmlinuz-2.6.18-194.el5 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
        initrd /initrd-2.6.18-194.el5.img


title wyb (2.6.)
        root (hd0,0)
       kernel /vmlinuz-2.6.27-yourname ro root=/dev/VolGroup00/LogVol00 rhgb quiet
       initrd /initrd-2.6.27-yourname.img

相关文章:

  • 2022-02-14
  • 2021-07-09
  • 2021-08-01
  • 2021-12-31
  • 2021-12-31
  • 2021-12-31
  • 2021-12-27
  • 2021-12-27
猜你喜欢
  • 2021-12-27
  • 2021-09-18
  • 2022-03-05
  • 2021-12-19
相关资源
相似解决方案