先进行系统更新
1 |
|
编辑yum配置文件,使用阿里云镜像
- 这里以 MariaDB 10.5为例
1
2
3
4
5
6
7
8vim /etc/yum.repos.d/MariaDB10.repo
#http://downloads.mariadb.org/mariadb/repositories/
[mariadb]
name = MariaDB
baseurl = https://mirrors.aliyun.com/mariadb/yum/10.5/centos7-amd64
gpgkey = https://mirrors.aliyun.com/mariadb/yum/RPM-GPG-KEY-MariaDB
gpgcheck = 1