centos 内核升级(2.6.18-194.el5升2.6.30)
2012年01月07日
因要测试一些软件,需要2.6.30以上的内核,安装好CentOS 5.5,内核是2.6.18-194.el5.这次的升级还算比较顺利,具体的过程如下:
[root@localhost ~]# uname -r
2.6.18-194.el5
1.下载linux-2.6.30内核包到/usr/src目录
cd /usr/src
wget ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.30.tar.gz
tar -xzvf linux-2.6.30.tar.bz2 -C /usr/src
cd linux-2.6.30
make mrproper 清除环境变量,即清除配置文件
make menuconfig 在菜单模式下选择需要编译的内核模块:
networking support―>networking options―>network packet filtering framework(netfilter)
(1).core netfilter configuration
A 勾中”Netfilter connection tracking support” -m state相关模块是依赖它的,不选则没有。
B 将netbios name service protocal support(new) 编译成模块,不然后面升级iptables后启动时会出错
C 勾中“Netfilter Xtables support (required for ip_tables)”
(2).IP: Netfilter Configuration
A 将 “IPv4 connection tracking support (require for NAT)” 编译成模块。
B 勾中IP tables support (required for filtering/masq/NAT) 。
C 将 “Full NAT” 下的 “MASQUERADE target support” 和 “REDIRECT target support” 编译成模块
(3).其它模块可以根据自己的需要进行选择,若不懂可以参考内核配置手册.
make clean 确保所有东西均保持最新状态.
make bzImage 生成内核文件
make modules 编译模块
make modules_install 安装模块
make install 安装
mkinitrd /boot/initrd_2.6.30.img 2.6.30 根据内核版本和指定参数生成映像文件
cp arch/x86/boot/bzImage /boot/vmlinuz-2.6.30
cp /usr/src/linux-2.6.30/System.map /boot/System.map-2.6.30
2.在/etc/grub.conf添加如下2.6.30的信息,并把default=1改为default=0
[root@localhost ~]# cat /etc/grub.conf
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00
# initrd /initrd-version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.18-194.el5)
root (hd0,0)
kernel /vmlinuz-2.6.18-194.el5 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.18-194.el5.img
title CentOS (2.6.30)
root (hd0,0)
kernel /vmlinuz-2.6.30 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.30.img
3.此步若没有操作,重启会报错”insmod: error inserting ‘/lib/dm-region-hash.ko’:
发表评论
-
科学家将研究梅西大脑 150万寻球王如何诞生
2012-01-20 12:01 686科学家将研究梅西大脑 150万寻球王如何诞生 2012年01 ... -
软件工程试题B卷及答案
2012-01-20 12:01 911软件工程试题B卷及答案 ... -
2011年04月17日
2012-01-20 12:01 5712011年04月17日 2011年04月17日 2007 ... -
[置顶]2009教年八校初三英语(中研)调研试卷(露听力及参考答案) 2009.4
2012-01-20 12:01 577[置顶]2009教年八校初三英语(中研)调研试卷(露听力及参考 ... -
MFC常见问题解惑
2012-01-19 16:50 637MFC常见问题解惑 2011年11月18日 MFC类的分 ... -
Windows编程学习自己的笔记备份
2012-01-19 16:50 630Windows编程学习自己的笔记备份 2010年10月20日 ... -
VB 系统托盘
2012-01-19 16:50 647VB 系统托盘 2011年04月19 ... -
可以设置显示位置和显示字体的消息框(MsgBox)
2012-01-19 16:50 1080可以设置显示位置和显示字体的消息框(MsgBox) 2011 ... -
C# 使用SendMessage 函数
2012-01-19 16:49 1251C# 使用SendMessage 函数 2011年06月21 ... -
发烧高端版v2.0版本
2012-01-17 06:34 609发烧高端版v2.0版本 2012 ... -
手把手教你如何搭建PHP本地测试环境和MYSQL数据库的建立和使用
2012-01-17 06:34 567手把手教你如何搭建PHP ... -
慢慢研究
2012-01-17 06:34 605慢慢研究 2011年12月24日 ... -
好多流行歌曲的英文版
2012-01-16 05:15 706好多流行歌曲的英文版 2009年12月13日 中文/英文 ... -
历届上海电影节获奖名单
2012-01-16 05:15 787历届上海电影节获奖名 ... -
李居明 饿火命(3)
2012-01-16 05:15 721李居明 饿火命(3) 2011年 ...
相关推荐
在虚拟机中将Centos 5.5的内核由2.6.18-194.el5升级到3.2.13,升级的时候碰到了许多的问题,有的是从网上找到的答案,有的是自己想出来的办法,给需要的朋友共享一下。
kernel-devel-2.6.18-128.el5.centos.plus.i686.rpm
解决This system is not registered with RHN. 包含三个文件: yum-3.2.22-26.el5.centos.noarch.rpm yum-fastestmirror-1.1.16-14.el5.centos.1.noarch.rpm yum-metadata-parser-1.1.2-3.el5.centos.i386.rpm
util-linux-2.13-0.59.el5_8.i386.rpmutil-linux-2.13-0.59.el5_8.i386.rpmutil-linux-2.13-0.59.el5_8.i386.rpm
安装驱动不能编译所需要的编译文件
fonts-chinese-3.02-12.el5.noarch.rpm fonts-ISO8859-2-75dpi-1.0-17.1.noarch.rpm 大家懂的
CentOS 7.6 x64操作系统上,安装Oracle 11G R2,验证时,提示缺少: pdksh-5.2.14。
telnet-server-0.17-41.el5.x86_64.rpm,安装telnet服务,通过xshell使用
xinetd - A secure replacement for inetd. Distribution: CentOS 5 Repository: CentOS x86_64 Package name: xinetd Package version: 2.3.14 ...Source package: xinetd-2.3.14-20.el5_10.src.rpm
krb5-devel-1.6.1-70.el5.x86_64.rpm
oracle11g在redhat6上的时候安装,验证时提示缺少: pdksh-5.2.14。会需要安装此pdksh-5.2.14-37.el5_8.1.i386安装包,解压后再使用。
fonts-chinese-3.02-12.el5.noarch.rpm和fonts-ISO8859-2-75dpi-1.0-17.1.noarch.rpm安装包
CentOS 5.5,内核是2.6.18-194.el5,对应的kernel-devel为kernel-devel-2.6.18-194.el5.i686
yum-fastestmirror-1.1.16-14.el5.centos.1.noarch.rpm,CentOS下yum安装包
解决Centos7安装pdksh-*.rpm冲突问题,并附带解决办法和可以通过的pdksh-5.2.14-37.el5的rpm包和compat-libstdc++-33-3.2.3-72.el7.x86_64.rpm
在CentOS上装vtigercrm缺少GD库可以用YUM命令装,不过php-gd用yum装不了 最主要是要匹配一样的版本
资源包含yum-metadata-parser-1.1.2-4.el5.x86_64.rpm、yum-metadata-parser-1.1.2-3.el5.centos.i386.rpm,两个文件,用于装yum的资源
CentOS6.5安装64位oracle11g依赖包--(pdksh和sysstat)
yum-updatesd-0.9-2.el5.noarch.rpm,CentOS 5下YUM安装包