zoukankan      html  css  js  c++  java
  • CentOS7内核升级

    1、安装elrepo的yum源

         (1)下载公钥

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

         (2)yum安装elrepo

        yum install -y https://www.elrepo.org/elrepo-release-7.0-4.el7.elrepo.noarch.rpm

    2、 查看可用的系统内核包

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

    3、升级内核

      在yum的elrepo源中有ml和lt两种内核,其中ml(mainline)为最新版本的内核,lt为长期支持的内核。

     (1)在这里我们安装ml内核

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

    4、修改grub.conf文件

      编辑修改/etc/default/grub配置文件里的GRUB_DEFAULT为0,设置新安装的内核为默认内核

    5、生成grub2文件并重启系统

        (1)生成grub2文件

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

       (2)重启系统

      reboot

    6、验证

      uname -r

  • 相关阅读:
    Validate US Telephone Numbers
    7月份总结
    Arguments Optional
    Everything Be True
    手机开发网页模板(20140124)
    整站开发初始化
    switch滑动开关
    js 面向对象
    Bootstrap 导航栏
    Bootstrap 标签页
  • 原文地址:https://www.cnblogs.com/douh/p/12487705.html
Copyright © 2011-2022 走看看