配置阿里yum源

 

root@docker ~]# curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/epel-7.repo

[root@docker ~]# curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo

 

指定安装版本(以mariadb为例)

yum list | grep mariadb
yum -y install mariadb-version

 

posted @ 2019-03-25 22:14  Ray_chen  阅读(1408)  评论(0编辑  收藏  举报