首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 其他教程 > 操作系统 >

CentOS Linux 升级内核方法和方法

2014-06-05 
CentOS Linux 升级内核步骤和方法将netbios name service protocal support(new) 编译成模块,不然后面升级

CentOS Linux 升级内核步骤和方法
将netbios name service protocal support(new) 编译成模块,不然后面升级iptables后启动时会出错勾中"Netfilter Xtables support (required for ip_tables)"

(2)IP: Netfilter Configuration

    将 "IPv4 connection tracking support (require for NAT)" 编译成模块。勾中IP tables support (required for filtering/masq/NAT) 。将 "Full NAT" 下的 "MASQUERADE target support" 和 "REDIRECT target support" 编译成模块

    (3)其它模块可以根据自己的需要进行选择,若不懂可以参考内核配置手册.

    # make clean #确保所有东西均保持最新状态.# make bzImage #生成内核文件# make modules #编译模块# make modules_install #安装模块# make install #安装

    4、编辑?/etc/grub.conf?文件,将?default=1?改为?default=0

    # 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/mapper/VolGroup-lv_root# initrd /initrd-[generic-]version.img#boot=/dev/sdadefault=1timeout=5splashimage=(hd0,0)/grub/splash.xpm.gzhiddenmenutitle CentOS Linux (3.12.4)root (hd0,0)kernel /vmlinuz-3.12.4 ro root=/dev/mapper/VolGroup-lv_root rd_LVM_LV=VolGroup/lv_root rd_LVM_LV=VolGroup/lv_swap rd_NO_LUKS rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto rhgb quietinitrd /initramfs-3.12.4.imgtitle centos (2.6.32-71.el6.i686)root (hd0,0)kernel /vmlinuz-2.6.32-71.el6.i686 ro root=/dev/mapper/VolGroup-lv_root rd_LVM_LV=VolGroup/lv_root rd_LVM_LV=VolGroup/lv_swap rd_NO_LUKS rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto rhgb quietinitrd /initramfs-2.6.32-71.el6.i686.img

    5、重启系统,并查看内核

    # reboot# uname -r3.12.4

热点排行