we will use ELRepo to install kernel (http://elrepo.org/tiki/tiki-index.php)
1. rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
2. rpm -Uvh http://www.elrepo.org/elrepo-release-6-6.el6.elrepo.noarch.rpm
3. yum --enablerepo=elrepo-kernel -y install kernel-lt
建议把kernel p_w_picpath下载下来
RHEL6: http://elrepo.org/linux/kernel/el6/x86_64/RPMS/
yum -y install kernel-lt-3.10.69-1.el6.elrepo.x86_64.rpm
yum -y install kernel-ml-3.19.0-1.el6.elrepo.x86_64.rpm
RHEL7: http://elrepo.org/linux/kernel/el7/x86_64/RPMS/
yum -y install kernel-ml-3.19.0-1.el7.elrepo.x86_64.rpm
4. RHEL6:
vi /etc/grub.conf
RHEL7:
awk -F\' '$1=="menuentry " {print $2}' /etc/grub2.cfg
grub2-set-default 0
grub2-mkconfig -o /boot/grub2/grub.cfg
5. reboot
转载于:https://blog.51cto.com/hj192837/1539329