Linux 软件安装 ARM64编译安装MariaDB教程

创建用户组

[root@cff51db969be ~]# groupadd -r mysql && useradd -c "MariaDB Server" -r -g mysql -s /sbin/nologin -d /usr/local/mariadb mysql -M

赋予用户数据目录权限

mkdir -pv /data/mariadb && chown -R mysql:mysql /data/mariadb

安装相关依赖

[root@cff51db969be ~]# yum -y install gcc gcc-c++ make autoconf automake libtool
[root@cff51db969be ~]# yum -y install openssl openssl-devel ncurses ncurses-devel bison bison-devel boost boost-devel jemalloc jemalloc-devel bzip2 bzip2-devel libxml2 libxml2-devel perl perl-devel lsof libaio-devel libcurl-devel libarchive-devel libevent-devel pcre-devel pcre2-devel zlib-devel kernel-headers kernel-devel zip tar m4 git gnutls-devel

安装编译工具

[root@cff51db969be ~]# wget -P '/usr/local/src' https://cmake.org/files/v3.19/cmake-3.19.5.tar.gz
[root@cff51db969be ~]# cd /usr/local/src
[root@cff51db969be ~]# tar -zxvf cmake-3.19.5.tar.gz -C '/usr/local/src'

你可能感兴趣的:(linux,linux,运维,服务器)