zoukankan      html  css  js  c++  java
  • RedHat6.5升级内核

    redhat6.5 升级内核

    1.导入key

    rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org

     

    2.安装elrepo的yum源

    rpm -Uvh https://www.elrepo.org/elrepo-release-6-8.el6.elrepo.noarch.rpm

     

    3.安装内核   

    yum --enablerepo=elrepo-kernel  install  kernel-lt -y

     

    4.修改默认引导

    Vim /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,1)
    
    #          kernel /vmlinuz-version ro root=/dev/sda5
    
    #          initrd /initrd-[generic-]version.img
    
    #boot=/dev/sda1
    
    device (hd0) HD(1,800,200000,1f09a34c-6cd6-44a4-b827-0853759b3df3)
    
    default=0   改为0
    
    timeout=5
    
    splashimage=(hd0,1)/grub/splash.xpm.gz
    
    hiddenmenu
    
    title Red Hat Enterprise Linux Server (4.4.190-1.el6.elrepo.x86_64)
    
        root (hd0,1)
    
        kernel /vmlinuz-4.4.190-1.el6.elrepo.x86_64 ro root=UUID=c63b0535-0442-4b4a-bf37-c232fb175c1a rd_NO_LUKS  KEYBOARDTYPE=pc KEYTABLE=us rd_NO_MD LANG=zh_CN.UTF-8 rd_NO_LVM rd_NO_DM rhgb quiet crashkernel=auto
    
        initrd /initramfs-4.4.190-1.el6.elrepo.x86_64.img
    
    title Red Hat Enterprise Linux 6 (2.6.32-642.el6.x86_64)
    
        root (hd0,1)
    
        kernel /vmlinuz-2.6.32-642.el6.x86_64 ro root=UUID=c63b0535-0442-4b4a-bf37-c232fb175c1a rd_NO_LUKS  KEYBOARDTYPE=pc KEYTABLE=us rd_NO_MD LANG=zh_CN.UTF-8 rd_NO_LVM rd_NO_DM rhgb quiet
    
        initrd /initramfs-2.6.32-642.el6.x86_64.img
    
     

    5.重启服务器

    reboot

     

  • 相关阅读:
    增强iOS应用程序性能的提示和技巧(25个)
    [iOS]用instancetype代替id作返回类型有什么好处?
    把cygwin加入右键菜单
    NSRange
    Centos7下安装MySQL
    (转)php 操作redis全部方法。
    unbuntu 安装php5.6
    unbuntu 安装nginx
    unbuntu 安装MySQL
    Ubuntu16.04下实现MySQL主从复制
  • 原文地址:https://www.cnblogs.com/FireLL/p/11611230.html
Copyright © 2011-2022 走看看