centos升级内核教程
当前系统为CentOS Linux release 6.0 (Final),内核版本为2.6.32-71.el6.i686.由于最近内核出现最新的漏洞(linux kernel 又爆内存提权漏洞,>=2.6.39 内核无一幸免{#thread_subject} 和),所以将内核升级至3.2.2最新版本.
1.查看当前系统内核
[root@bogon linux-3.2.2]# uname -r
2.6.32-71.el6.i686
2.下载linux-3.2.2内核包
cd ~
wget -c http://www.kernel.org/pub/linux/kernel/v3.0/linux-3.2.2.tar.bz2
tar jxvf linux-3.2.2.tar.bz2
cd linux-3.2.2
3.配置内核并安装
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)” 编译成模块。
By admin
read more