RedHat6.5升級內核


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

 

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM