CentOS6.5升级内核

来源:互联网 发布:淘宝皮草店装修效果图 编辑:程序博客网 时间:2024/05/16 09:53

1.Import the public key:

 --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org Deta

Detailed info on the GPG key used by the ELRepo Project can be found on https://www.elrepo.org/tiki/key

If you have a system with Secure Boot enabled, please see the SecureBootKey page for more information.

To install ELRepo for RHEL-7, SL-7 or CentOS-7:

rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-2.el7.elrepo.noarch.rpm
To make use of our mirror system, please also install yum-plugin-fastestmirror.

To install ELRepo for RHEL-6, SL-6 or CentOS-6:

rpm -Uvh http://www.elrepo.org/elrepo-release-6-6.el6.elrepo.noarch.rpm

To make use of our mirror system, please also install yum-plugin-fastestmirror.

To install ELRepo for RHEL-5, SL-5 or CentOS-5:

rpm -Uvh http://www.elrepo.org/elrepo-release-5-5.el5.elrepo.noarch.rpm

2,其它的步骤参考本博的文章

CentOS7升级内核到最新版本

重要

修改内核启动,通过修改/etc/grub.conf文件中的default=0,来进行。

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,0)#          kernel /vmlinuz-version ro root=/dev/mapper/VolGroup-lv_root#          initrd /initrd-[generic-]version.img#boot=/dev/md127default=0timeout=5splashimage=(hd0,0)/grub/splash.xpm.gz

一般默认更新的内核都在第0位置,所以设置default为0。

0 0
原创粉丝点击