curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
curl -o /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
yum clean all
yum makecache
yum install epel-release -y
yum makecache
yum install mariadb mariadb-server -y
systemctl restart mysqld
systemctl enable mysqld
mysqladmin -uroot -password 初始密码