zoukankan      html  css  js  c++  java
  • CentOS6.9 内核升级(2.6.32-696.16.1升级到4.4.101-1.el6.el)

      由于本人想在CentOS 6.9上安装Docker容器,发现内核版本过低,2.6.32-696,操作系统是6.9 x86_64位,因此便升级内核到3.8及以上长期稳定支持版本。

    [root@test01 ~]# uname -r   #内核查看确认
    2.6.32-696.16.1.el6.x86_64
    [root@test01 ~]# 
    [root@test01 ~]# rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org    
    [root@test01 ~]# rpm -Uvh http://www.elrepo.org/elrepo-release-6-8.el6.elrepo.noarch.rpm #安装yum源
    Retrieving http://www.elrepo.org/elrepo-release-6-8.el6.elrepo.noarch.rpm                 
    Preparing...                ########################################### [100%]
       1:elrepo-release         ########################################### [100%]
    [root@test01 ~]# yum --enablerepo=elrepo-kernel install kernel-lt -y                      #安装内核操作,操作记录如下:
    Loaded plugins: fastestmirror
    Repository base is listed more than once in the configuration
    Repository updates is listed more than once in the configuration
    Repository extras is listed more than once in the configuration
    Repository centosplus is listed more than once in the configuration
    Repository contrib is listed more than once in the configuration
    Setting up Install Process
    Loading mirror speeds from cached hostfile
     * base: mirrors.cn99.com
     * elrepo: mirrors.tuna.tsinghua.edu.cn
     * elrepo-kernel: mirrors.tuna.tsinghua.edu.cn
     * epel: mirrors.tongji.edu.cn
     * extras: mirrors.cn99.com
     * updates: mirrors.cn99.com
    elrepo                                                                                                                                | 2.9 kB     00:00     
    elrepo/primary_db                                                                                                                     | 675 kB     00:00     
    elrepo-kernel                                                                                                                         | 2.9 kB     00:00     
    elrepo-kernel/primary_db                                                                                                              |  18 kB     00:00     
    Resolving Dependencies
    --> Running transaction check
    ---> Package kernel-lt.x86_64 0:4.4.101-1.el6.elrepo will be installed
    --> Finished Dependency Resolution
    
    Dependencies Resolved
    
    =============================================================================================================================================================
     Package                           Arch                           Version                                        Repository                             Size
    =============================================================================================================================================================
    Installing:
     kernel-lt                         x86_64                         4.4.101-1.el6.elrepo                           elrepo-kernel                          38 M
    
    Transaction Summary
    =============================================================================================================================================================
    Install       1 Package(s)
    
    Total download size: 38 M
    Installed size: 174 M
    Downloading Packages:
    kernel-lt-4.4.101-1.el6.elrepo.x86_64.rpm                                                                                             |  38 MB     00:29     
    Running rpm_check_debug
    Running Transaction Test
    Transaction Test Succeeded
    Running Transaction
    Warning: RPMDB altered outside of yum.
      Installing : kernel-lt-4.4.101-1.el6.elrepo.x86_64                                                                                                     1/1 
      Verifying  : kernel-lt-4.4.101-1.el6.elrepo.x86_64                                                                                                     1/1 
    
    Installed:
      kernel-lt.x86_64 0:4.4.101-1.el6.elrepo                                                                                                                    
    
    Complete!
    [root@test01 ~]# 
    [root@test01 ~]# vim /etc/grub.conf

    image.png

    [root@test01 ~]# reboot
    [root@test01 ~]#  uname -r                 #查看内核是否升级及重启生效。
    4.4.101-1.el6.elrepo.x86_64

     https://www.zksfyz.com/detail/199/

  • 相关阅读:
    Linux Systemcall By INT 0x80、Llinux Kernel Debug Based On Sourcecode
    ELF(Executable and Linkable Format)
    Linux文件权限;ACL;Setuid、Setgid、Stick bit特殊权限;sudo提权
    Linux System Calls Hooking Method Summary
    GCC、Makefile编程学习
    Linux Process/Thread Creation、Linux Process Principle、sys_fork、sys_execve、glibc fork/execve api sourcecode
    Linux中断技术、门描述符、IDT(中断描述符表)、异常控制技术总结归类
    浅议SNMP安全、SNMP协议、网络管理学习
    DNS安全浅议、域名A记录(ANAME),MX记录,CNAME记录
    RIP、OSPF、BGP、动态路由选路协议、自治域AS
  • 原文地址:https://www.cnblogs.com/zksfyz/p/7919425.html
Copyright © 2011-2022 走看看