Linux升级内核的方法
rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org //导入public key rpm -Uvh //安装ELRepo到CentOS 6中 yum --enablerepo=elrepo-kernel install kernel-lt //安装内核 更改/etc/grub.conf,将default=1改为default=0 vim /etc/grub.conf default=0 timeout=5 splashimage=(hd0,0)/grub/splash.xpm.gz hiddenmenu title CentOS (3.10.92-1.el6.elrepo.x86_64) root (hd0,0) kernel /vmlinuz-3.10.92-1.el6.elrepo.x86_64 ro root=/dev/mapper/vg_linmu-lv_root rd_NO_LUKS rd_NO_MD rd_LVM_LV=vg_linmu/lv_swap crashkernel=auto.UTF-8 rd_LVM_LV=vg_linmu/lv_root KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM rhgb quiet initrd /initramfs-3.10.92-1.el6.elrepo.x86_64.img title CentOS (2.6.32-358.el6.x86_64) root (hd0,0) kernel /vmlinuz-2.6.32-358.el6.x86_64 ro root=/dev/mapper/vg_linmu-lv_root rd_NO_LUKS rd_NO_MD rd_LVM_LV=vg_linmu/lv_swap crashkernel=auto.UTF-8 rd_LVM_LV=vg_linmu/lv_root KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM rhgb quiet initrd /initramfs-2.6.32-358.el6.x86_64.img 重启:reboot 查看内核版本:uname -r 3.10.92-1.el6.elrepo.x86_64
(http://elrepo.org/tiki/tiki-index.php)
时间: 2024-10-10 21:51:54