a. 最好不要自行编译内核。直接下载官方的rpm包进行升级即可;
b. 下面是从2.6.32-431升级到2.6.32-504的步骤;
1. 备份重要数据;
2. 下载kernel-2.6.32-504.el6.x86_64.rpm 和 kernel-firmware-2.6.32-504.el6.noarch.rpm ;
3. 升级kernel-firmware;
[root@r6s0 tmp]# rpm -Uvh kernel-firmware-2.6.32-504.el6.noarch.rpm
4. 安装kernel;
[root@r6s0 tmp]# rpm -ivh kernel-2.6.32-504.el6.x86_64.rpm
5. 检查grub.conf,启动时应以新内核启动;
kernel /vmlinuz-2.6.32-504.el6.x86_64