欢迎加入站点基地设计开发交流群:30720409
详细内容
当前位置 首页 >> 技术文档 >> NodeJS >> 正文
centOs升级linux内核及安装docker
发布日期:2019-08-07     点击:1842     字体:[ ]

一些老版本的linux安装docker会出现这样那样的问题,一般要求linux版本在3.10以上,所以要升级linux内核,其实升级不复杂,质量几条命令即可,

第三步如果执行出错,可以至https://www.elrepo.org网站查看命令,网站上用的是install命令

yum install https://www.elrepo.org/elrepo-release-6-9.el6.elrepo.noarch.rpm


第一步:首先查看自己的内核版本:
# uname -r
第二步:以root用户输入以下指令:
# rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
第三步:输入:
# rpm -Uvh https://www.elrepo.org/elrepo-release-6-8.el6.elrepo.noarch.rpm
第四步:输入:
# yum -y --enablerepo=elrepo-kernel install kernel-lt
第五步:重启系统
# reboot
第六步:以root身份修改/etc/grub.conf,将其中的default=1修改为default=0,然后保存修改退出
# vim /etc/grub.conf
第七步:重启系统

 

升级内核后安装docker,优先使用yum install docker,我看版本是1.5的,网上有用其他库安装的1.7版本,下面列出各个系统的记录

 

Ubuntu/Debian: curl -sSL https://get.docker.com | sh

Linux 64bit binary: https://get.docker.com/builds/Linux/x86_64/docker-1.7.1

Darwin/OSX 64bit client binary: https://get.docker.com/builds/Darwin/x86_64/docker-1.7.1

Darwin/OSX 32bit client binary: https://get.docker.com/builds/Darwin/i386/docker-1.7.1

Linux 64bit tgz: https://get.docker.com/builds/Linux/x86_64/docker-1.7.1.tgz

Windows 64bit client binary: https://get.docker.com/builds/Windows/x86_64/docker-1.7.1.exe

Windows 32bit client binary: https://get.docker.com/builds/Windows/i386/docker-1.7.1.exe

Centos 6/RHEL 6: https://get.docker.com/rpm/1.7.1/centos-6/RPMS/x86_64/docker-engine-1.7.1-1.el6.x86_64.rpm

Centos 7/RHEL 7: https://get.docker.com/rpm/1.7.1/centos-7/RPMS/x86_64/docker-engine-1.7.1-1.el7.centos.x86_64.rpm

Fedora 20: https://get.docker.com/rpm/1.7.1/fedora-20/RPMS/x86_64/docker-engine-1.7.1-1.fc20.x86_64.rpm

Fedora 21: https://get.docker.com/rpm/1.7.1/fedora-21/RPMS/x86_64/docker-engine-1.7.1-1.fc21.x86_64.rpm

Fedora 22: https://get.docker.com/rpm/1.7.1/fedora-22/RPMS/x86_64/docker-engine-1.7.1-1.fc22.x86_64.rpm

我的是certos6.8,所以执行以下安装语句

yum install https://get.docker.com/rpm/1.7.1/centos-6/RPMS/x86_64/docker-engine-1.7.1-1.el6.x86_64.rpm

 

用户评论
昵称 
内容  *
验证码   
   
Copyright © 2010 zdbase.com All Rights Reserved. 苏ICP备15039389号-1 可人软件设计