当前位置:首页 > 操作系统 > Linux

CentOS7 Without SELinux MariaDB Install

安装MariaDB

环境

  • CentOS7 Without SELinux Cloud Server

过程

  1. 根据官方指引,选择仓库,根据需要选择
    1.1 选择Linux发行版本 CentOS7(x86_64)
    1.2 选择服务端版本 10.6
    1.3 选择镜像 China eScienceCenter - Nanjing University
  2. 给出的仓库配置文件 custom MariaDB YUM repository entry for CentOS 示例:
        # MariaDB 10.6 CentOS repository list - created 2021-08-18 02:54 UTC
# https://mariadb.org/download/
[mariadb]
name = MariaDB
baseurl = https://mirrors.nju.edu.cn/mariadb/yum/10.6/centos7-amd64
gpgkey=https://mirrors.nju.edu.cn/mariadb/yum/RPM-GPG-KEY-MariaDB
gpgcheck=1

    
  1. 添加软件源
    在/etc/yum.repos.d中新建文件MariaDB.repo(文件名可自定义),并将配置写入
  2. 安装,运行
        sudo yum install MariaDB-server MariaDB-client

    
  1. 若仓库没有加载,可以执行
        yum makecache

    
  1. 若修改了配置文件,需要执行
        yum clean all

    

备注

  1. 开始没看仔细选择了ARM64架构,导致无法成功安装

参考

  1. 官方安装文档
  2. 官方yum/dnf安装文件

原文:https://www.cnblogs.com/sdlea/p/15155987.html


【说明】本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:254677821)!