小网管 2017-03-11
[root@localhost ~]
# uname -a ##旧版
Linux localhost.localdomain 2.6.32-279.el6.i686
#1 SMP Fri Jun 22 10:59:55 UTC 2012 i686 i686 i386 GNU/Linux
[root@localhost ~]
# rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
[root@localhost ~]
# rpm -ivh http://www.elrepo.org/elrepo-release-6-5.el6.elrepo.noarch.rpm
[root@localhost ~]
# yum --enablerepo=elrepo-kernel install kernel-lt -y ##此步会有点慢
[root@localhost ~]
# vim /etc/grub.conf default=1 改为 default=0 ##设置默认以3.10核心启动,默认是按照旧的核心启动
[root@localhost ~]
# reboot
[root@localhost ~]
# uname -a ##升级后的版本
Linux localhost.localdomain 3.10.104-1.el6.elrepo.i686
#1 SMP Fri Oct 21 09:11:59 EDT 2016 i686 i686 i386 GNU/Linux