centos 6.9 内核升级
[root@wxl ~]# rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
[root@wxl ~]# rpm -Uvh http://www.elrepo.org/elrepo-release-6-8.el6.elrepo.noarch.rpm
[root@wxl ~]# yum --enablerepo=elrepo-kernel install kernel-lt -y
修改grub.conf文件的default=0
#boot=/dev/sda default=0 timeout=5 splashimage=(hd0,4)/boot/grub/splash.xpm.gz hiddenmenu title CentOS (3.10.107-1.el6.elrepo.x86_64) root (hd0,4) kernel /boot/vmlinuz-3.10.107-1.el6.elrepo.x86_64 ro root=UUID=95b6c59e-dd38-4fcd-81b3-9fdb4b663f97 rd_NO_LUKS rd_NO_LVM LANG=en_US.UTF-8 rd_NO_MD SYSFONT=latarcyrheb-sun16 crashkernel=128M KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM rhgb quiet initrd /boot/initramfs-3.10.107-1.el6.elrepo.x86_64.img title CentOS 6 (2.6.32-696.el6.x86_64) root (hd0,4) kernel /boot/vmlinuz-2.6.32-696.el6.x86_64 ro root=UUID=95b6c59e-dd38-4fcd-81b3-9fdb4b663f97 rd_NO_LUKS rd_NO_LVM LANG=en_US.UTF-8 rd_NO_MD SYSFONT=latarcyrheb-sun16 crashkernel=128M KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM rhgb quiet initrd /boot/initramfs-2.6.32-696.el6.x86_64.img
重新启动查看内核版本
[root@wxl ~]# uname -ra Linux wxl.study.com 3.10.107-1.el6.elrepo.x86_64 #1 SMP Tue Jun 27 10:57:54 EDT 2017 x86_64 x86_64 x86_64 GNU/Linux
闲杂人等

浙公网安备 33010602011771号