:one: 配置aliyun镜像源
###aliyun源配置
curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo
####mariadb源配置
[root@server-no ~]# cat /etc/yum.repos.d/mysql.repo
# MariaDB 10.8 CentOS repository list - created 2023-04-13 05:53 UTC
# https://mariadb.org/download/
[mariadb]
name = MariaDB
# rpm.mariadb.org is a dynamic mirror if your preferred mirror goes offline. See https://mariadb.org/mirrorbits/ for details.
# baseurl = https://rpm.mariadb.org/10.8/centos/$releasever/$basearch
baseurl = https://mirrors.neusoft.edu.cn/mariadb/yum/10.8/centos/$releasever/$basearch
module_hotfixes = 1
# gpgkey = https://rpm.mariadb.org/RPM-GPG-KEY-MariaDB
gpgkey = https://mirrors.neusoft.edu.cn/mariadb/yum/RPM-GPG-KEY-MariaDB
gpgcheck = 1
###zabbix源配置
[root@server-no ~]# cat /etc/yum.repos.d/zabbix.repo
[zabbix]
name=zabbix
baseurl=https://mirrors.aliyun.com/zabbix/zabbix/6.1/rhel/7/x86_64/
enabled=1
gpgcheck=0
:two: 下载配置MariaDB和zabbix数据库
[root@server-no ~]# yum install -y Mariadb-server zabbix-proxy-mysql zabbix-sql-scripts