首先查看当前内核版本使用uname -a
当前内核2.6.32
我们使用yum升级内核。
1导入public key
rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
2安装ELRepo到CentOS-6.5中
rpm -ivh http://www.elrepo.org/elrepo-release-6-5.el6.elrepo.noarch.rpm
3安装kernel-lt
yum --enablerepo=elrepo-kernel -y install kernel-lt [root@localhost ~]# yum --enablerepo=elrepo-kernel -y install kernel-lt Loaded plugins: fastestmirror, refresh-packagekit, security Determining fastest mirrors * base: mirrors.btte.net * elrepo: ftp.ne.jp * elrepo-kernel: ftp.ne.jp * extras: mirrors.skyshe.cn * updates: mirrors.btte.net elrepo-kernel | 2.9 kB 00:00 elrepo-kernel/primary_db | 20 kB 00:00 Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package kernel-lt.x86_64 0:3.10.88-1.el6.elrepo will be installed --> Finished Dependency Resolution Dependencies Resolved ============================================================================================================================================================= Package Arch Version Repository Size ============================================================================================================================================================= Installing: kernel-lt x86_64 3.10.88-1.el6.elrepo elrepo-kernel 33 M Transaction Summary ============================================================================================================================================================= Install 1 Package(s) Total download size: 33 M Installed size: 154 M Downloading Packages: kernel-lt-3.10.88-1.el6.elrepo.x86_64.rpm | 33 MB 01:42 Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Warning: RPMDB altered outside of yum. Installing : kernel-lt-3.10.88-1.el6.elrepo.x86_64 1/1 Verifying : kernel-lt-3.10.88-1.el6.elrepo.x86_64 1/1 Installed: kernel-lt.x86_64 0:3.10.88-1.el6.elrepo Complete! 4修改/etc/grub.conf 将default修改为0默认为1 5 reboot 6启动页面略有变化 7uname -a 查看内核版本