centos7升级内核

  sre

升级内核

rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-2.el7.elrepo.noarch.rpm 
yum --enablerepo=elrepo-kernel install kernel-ml-devel kernel-ml -y
[root@node02 ~]# awk -F\' '=="menuentry " {print i++ " : " ' /etc/grub2.cfg
0 : CentOS Linux (4.20.0-1.el7.elrepo.x86_64) 7 (Core)
1 : CentOS Linux (3.10.0-957.1.3.el7.x86_64) 7 (Core)
2 : CentOS Linux (3.10.0-957.el7.x86_64) 7 (Core)
3 : CentOS Linux (0-rescue-0fdf9e0d265d468896c8a8484f2851f0) 7 (Core)}
grub2-set-default 0
sync
reboot

One Reply to “centos7升级内核”

LEAVE A COMMENT

Captcha Code