redhat6.5 升级内核
1.导入key
rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
2.安装elrepo的yum源
rpm -Uvh https://www.elrepo.org/elrepo-release-6-8.el6.elrepo.noarch.rpm
3.安装内核
yum --enablerepo=elrepo-kernel install kernel-lt -y
4.修改默认引导
Vim /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,1) # kernel /vmlinuz-version ro root=/dev/sda5 # initrd /initrd-[generic-]version.img #boot=/dev/sda1 device (hd0) HD(1,800,200000,1f09a34c-6cd6-44a4-b827-0853759b3df3) default=0 改为0 timeout=5 splashimage=(hd0,1)/grub/splash.xpm.gz hiddenmenu title Red Hat Enterprise Linux Server (4.4.190-1.el6.elrepo.x86_64) root (hd0,1) kernel /vmlinuz-4.4.190-1.el6.elrepo.x86_64 ro root=UUID=c63b0535-0442-4b4a-bf37-c232fb175c1a rd_NO_LUKS KEYBOARDTYPE=pc KEYTABLE=us rd_NO_MD LANG=zh_CN.UTF-8 rd_NO_LVM rd_NO_DM rhgb quiet crashkernel=auto initrd /initramfs-4.4.190-1.el6.elrepo.x86_64.img title Red Hat Enterprise Linux 6 (2.6.32-642.el6.x86_64) root (hd0,1) kernel /vmlinuz-2.6.32-642.el6.x86_64 ro root=UUID=c63b0535-0442-4b4a-bf37-c232fb175c1a rd_NO_LUKS KEYBOARDTYPE=pc KEYTABLE=us rd_NO_MD LANG=zh_CN.UTF-8 rd_NO_LVM rd_NO_DM rhgb quiet initrd /initramfs-2.6.32-642.el6.x86_64.img
5.重启服务器
reboot