CentOS 6.5 i386升级内核到3.10.28

前端之家收集整理的这篇文章主要介绍了CentOS 6.5 i386升级内核到3.10.28前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

CentOS 6.5 i386升级内核到3.10.28

这个相对简单,直接看具体的操作过程就行了。

至于下载linux-3.10.28.tar.gz包我就不写了,会升级难道不会下载个TAR包,^_^ !!

操作:

[root@localhost ~]# uname -ra
Linux localhost.localdomain 2.6.32-431.el6.i686 #1 SMP Fri Nov 22 00:26:36 UTC 2013 i686 i686 i386 GNU/Linux
[root@localhost ~]# yum -y install make gcc gcc-c++ kernel-devel m4 ncurses-devel openssl-devel gcc gcc-c++ zlib zlib-devel hmaccalc zlib-devel binutils-devel elfutils-libelf-devel

[root@localhost ~]# cd Downloads/linux-3.10.28/
[root@localhost linux-3.10.28]# pwd
/root/Downloads/linux-3.10.28
[root@localhost linux-3.10.28]# cp /boot/config-2.6.32-431.el6.i686 .config
[root@localhost linux-3.10.28]# sh -c 'yes "" | make oldconfig'
[root@localhost linux-3.10.28]# make menuconfig
[root@localhost linux-3.10.28]# make -j4 bzImage
[root@localhost linux-3.10.28]# make -j4 modules
[root@localhost linux-3.10.28]# make -j4 modules_install
[root@localhost linux-3.10.28]# make -j4 install
[root@localhost linux-3.10.28]# cp /etc/grub.conf /etc/grub.conf.bak
[root@localhost linux-3.10.28]# vim /etc/grub.conf
调整下kernel的启动顺序就OK了。
[root@localhost linux-3.10.28]# reboot

Broadcast message from root@localhost.localdomain
        (/dev/pts/1) at 19:38 ...

The system is going down for reboot NOW!
再次进来就是新的kernel了。

猜你在找的CentOS相关文章