1.当前操作系统信息
# uname -a
Linux test16 2.6.32-642.el6.x86_64 #1 SMP Tue May 10 17:27:01 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
# cat /etc/redhat-release
CentOS release 6.8 (Final)
2.升级内核版本到3.10.108,安装yum源
(1)Import the public key
# rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
(2)安装源
# rpm -Uvh http://www.elrepo.org/elrepo-release-6-8.el6.elrepo.noarch.rpm
Retrieving http://www.elrepo.org/elrepo-release-6-8.el6.elrepo.noarch.rpm
Preparing... ########################################### [100%]
1:elrepo-release ########################################### [100%]
3.升级CentOS
# yum update -y
4.升级内核
# yum --enablerepo=elrepo-kernel install kernel-lt -y
5.修改/etc/grub.conf文件的default=0
6.重启并查看内核
# uname -r
3.10.108-1.el6.elrepo.x86_64
网友评论