歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux綜合 >> 學習Linux >> CentOS通過YUM升級centOS內核

CentOS通過YUM升級centOS內核

日期:2017/3/6 9:11:21   编辑:學習Linux

CentOS通過YUM升級centOS內核


CentOS通過YUM升級centOS內核


安裝docker要滿足一定的條件,對於cents系統,要求必須是64位,並且內核版本是3.10以上。
如果你的centos操作系統內核低於3.10,需要升級到這個版本以上,才能安裝docker。

第一步,先看目前的內核版本

uname -r
在我的系統上輸出:

2.6.32-431.el6.centos.plus.x86_64

第二步,導入public key

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

第三步,安裝ELRepo

rpm -Uvh http://www.elrepo.org/elrepo-release-6-6.el6.elrepo.noarch.rpm
  • 1

第四步,安裝內核

在yum的ELRepo源中,有mainline(4.6)、long-term(3.10)這2個內核版本,考慮到long-term更穩定,會長期更新,所以選擇這個版本。

查看ELRepo源中內核:http://elrepo.org/linux/kernel/el6/x86_64/RPMS/

安裝命令: yum --enablerepo=elrepo-kernel install kernel-lt -y

第五步,編輯grub.conf,修改Grub引導順序

vim /etc/grub.conf 確認剛安裝好的內核在哪個位置,然後設置default值(從0開始),一般新安裝的內核在第一個位置,所以設置default=0。

第六步,重啟,查看內核版本號

unmet -r 在我的系統上輸出:

參考資料:

http://elrepo.org/tiki/tiki-index.php

http://xxxxxx/Linuxjc/1156084.html TechArticle

Copyright © Linux教程網 All Rights Reserved