一.首先编译安装openssl
1.首先需要创建mysql用户
shell>groupadd mysql
shell>useradd -s /sbin/nologin -g mysql mysql
#设置mysql默认bash为nologin,不允许登录系统
2.依赖关系
shell>yum install ncurses
shell>yum install ncurses-devel
shell>yum install gcc libgcc gcc-c++ compat-gcc
shell>yum install libtool libtool-ltdl-devel
3.编译安装openssl
shell>wget http://www.openssl.org/source/openssl-1.0.1f.tar.gz
shell>tar -zxvf openssl-1.0.1f.tar.gz
shell>cd openssl-1.0.1f
shell>./config -fPIC#不添加-fPIC参数,在make mysql阶段会报错
shell>make && make install
#openssl默认安装位置在/usr/local/ssl
在编译openssl时
##error1
../include/violite.h:98:30: 错误:openssl/opensslv.h:没有那个文件或目录
../include/violite.h:114:25: 错误:openssl/ssl.h:没有那个文件或目录
../include/viol