概述
RHEL5下升级内核至2.6.29.6
http://www.kernel.org/
首先我们在这里下载内核的源码包

这里我选择的是2.6.29.6

以上是我的系统信息
下载的内核文件我拷贝至 /usr/src 目录下
[root@server2 src]# tar -jxvf linux-2.6.29.6.tar.bz2
解压文件
[root@server2 src]# ln -s linux-2.6.29.6 linux
做个链接

执行命令 make menuconfig
内核选项的选择是决定内核升级成功的关键,执行make menuconfig后,系统会自动根据当前的硬件和原内核版本中的选项选定目标版本的选项,不做任何选项的改动,保存选项生成.config继续编译。不出意外的话,新内核都能成功启动
内核选项的选择是决定内核升级成功的关键,执行make menuconfig后,系统会自动根据当前的硬件和原内核版本中的选项选定目标版本的选项,不做任何选项的改动,保存选项生成.config继续编译。不出意外的话,新内核都能成功启动

在这个图形化的界面里,可以定制你的内核
但如果不是会让你熟悉这些具体都是干什么的话,还是别动它,
之下按光标下键,
移动至
Save an alternate configuration file
按tab键
高亮显示为exit 选择yes


执行命令make
这个过程是相当漫长的,

执行命令 make modules
安装模组

执行命令 make modules_install

执行命令 make install

安装完成重新启动

这个界面按回车

选择新的内核

这是启动后的情况
可以修改一下 /boot/grub/menu.lst 这个文件,


让之有一个启动项
这是我的历史命令供参考

转载于:https://blog.51cto.com/yuzeying/238545
最后
以上就是体贴小熊猫为你收集整理的RHEL5下升级内核至2.6.29.6的全部内容,希望文章能够帮你解决RHEL5下升级内核至2.6.29.6所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复