zoukankan      html  css  js  c++  java
  • Centos7升级内核版本

    一、查看当前内核

    # uname -r
    3.10.0-327.el7.x86_64
    

    二、使用ELrepo库升级

      2.1 启用ELRepo库

    # rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
    # rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-2.el7.elrepo.noarch.rpm
    

      2.2 列出相关内核包

    # yum --disablerepo="*" --enablerepo="elrepo-kernel" list available
    

      

      2.2 安装新内核

    # yum --enablerepo=elrepo-kernel install kernel-ml
    

    三、设置GRUB默认的内核版本

    vim /etc/default/grub
    
    GRUB_TIMEOUT=5
    GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
    GRUB_DEFAULT=0
    GRUB_DISABLE_SUBMENU=true
    GRUB_TERMINAL_OUTPUT="console"
    GRUB_CMDLINE_LINUX="crashkernel=auto rhgb quiet"
    GRUB_DISABLE_RECOVERY="true"
    
    
    # 设置 GRUB_DEFAULT=0, 意思是 GRUB 初始化页面的第一个内核将作为默认内核
    

      运行下面的命令来重新创建内核配置

    # grub2-mkconfig -o /boot/grub2/grub.cfg
    

      启动并验证

      

  • 相关阅读:
    hdu 1381 Crazy Search
    hdu 5131 Song Jiang's rank list
    poj 2251 Dungeon Master
    hdu 4941 Magical Forest
    hdu 1728 逃离迷宫
    hdu 2612 Find a way
    hdu 3288 Resource Allocation
    hdu 1272 小希的迷宫
    hdu 5224 Tom and paper
    hdu 5104 Primes Problem
  • 原文地址:https://www.cnblogs.com/bigberg/p/8521331.html
Copyright © 2011-2022 走看看