标签:.gz openssl 依赖 white 教程 连接 dir cer org
在CentOS7.3编译安装MariaDB10.2.12详细教程1. 删除CentOS7.3默认数据库配置文件
查看默认数据库配置文件
[root@localhost ~]# find -H /etc/ | grep my.c /etc/pki/tls/certs/make-dummy-cert /etc/pki/tls/certs/renew-dummy-cert /etc/my.cnf.d /etc/my.cnf.d/mysql-clients.cnf /etc/my.cnf
删除默认数据库配置文件
[root@localhost ~]# rm -rf /etc/my.cnf /etc/my.cnf.d/
再次查看默认数据库配置文件
[root@localhost ~]# find -H /etc/ | grep my.c /etc/pki/tls/certs/make-dummy-cert /etc/pki/tls/certs/renew-dummy-cert
到目前为止, 系统最小化安装自带的数据库配置文件已经删除干净了!
2. 卸载系统自带mariadb-libs
查询
[root@localhost ~]# rpm -qa|grep mariadb-libs mariadb-libs-5.5.52-1.el7.x86_64
卸载
[root@localhost ~]# rpm -e mariadb-libs-5.5.52-1.el7.x86_64 --nodeps
安装相关包
[root@localhost ~]# yum -y install libaio [root@localhost ~]# yum -y install libaio-devel [root@localhost ~]# yum -y install bison [root@localhost ~]# yum -y install bison-devel [root@localhost ~]# yum -y install zlib-devel [root@localhost ~]# yum -y install openssl [root@localhost ~]# yum -y install openssl-devel [root@localhost ~]# yum -y install ncurses [root@localhost ~]# yum -y install ncurses-devel [root@localhost ~]# yum -y install libcurl-devel [root@localhost ~]# yum -y install libarchive-devel [root@localhost ~]# yum -y install boost [root@localhost ~]# yum -y install boost-devel [root@localhost ~]# yum -y install wget [root@localhost ~]# yum -y install gcc [root@localhost ~]# yum -y install gcc-c++ [root@localhost ~]# yum -y install make [root@localhost ~]# yum -y install cmake [root@localhost ~]# yum -y install perl [root@localhost ~]# yum -y install kernel-headers [root@localhost ~]# yum -y install kernel-devel [root@localhost ~]# yum -y install pcre-devel
如果yum在某些环境下(内网.不能连接外网的情况)可以在网易的开源镜像搜索下载对应rpm包进行安装 网易开源镜像地址:
http://mirrors.163.com/centos/7/os/x86_64/Packages/
rpm -ivh your-package.rpm ---安装rpm包 rpm -Uvh your-package.rpm ---升级rpm包 rpm -q package-name ---查询包是否被安装 rpm -e package-name --nodeps ---卸载某个包 不检查依赖
自动解决依赖关系
yum localinstall xxx.rpm
3. 创建家目录存放软件包目录
这里目录名字可以随意
[root@localhost ~]# mkdir soft [root@localhost ~]# cd soft
4. MariaDB官网复制源码包链接地址并下载解压
下载
[root@localhost soft]# wget https://downloads.mariadb.org/interstitial/mariadb-10.2.12/source/mariadb-10.2.12.tar.gz
解压
tar -zxvf mariadb-10.2.12.tar.gz
标签:.gz openssl 依赖 white 教程 连接 dir cer org
原文地址:http://blog.51cto.com/zhibeiwang/2067368