centos6和8已经停止维护,这篇主要处理6更新yum源
更新6yum
[root@wg ~]# sed -i "s|enabled=1|enabled=0|g" /etc/yum/pluginconf.d/fastestmirror.conf
[root@wg ~]# mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
[root@wg ~]# curl -o /etc/yum.repos.d/CentOS-Base.repo https://www.xmpan.com/Centos-6-Vault-Aliyun.repo
[root@wg ~]# yum clean all
[root@wg ~]# yum makecache
安装包
yum -y groupinstall "Development Tools"
yum -y install epel-release pcre-devel openssl-devel expat-devel libxml2-devel sqlite-devel
yum -y install libcurl-devel ncurses-devel libaio-devel oniguruma-devel cmake screen
yum-config-manager --add-repo https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
yum makecache fast
yum -y install docker-ce docker-ce-cli containerd.io
yum -y install inotify-tools