1、系统环境
CentOS 7 ,Tomcat 7
2、Tomcat提示需要安装APR
3、安装OpenSSL
wget https://www.openssl.org/source/openssl-1.0.2l.tar.gz
tar zxf openssl-1.0.2l.tar.gz
cd openssl-1.0.2l
配置并编译安装:
./config -fPIC --prefix=/usr/local/openssl/ enable-shared && make && make install
注释:
--prefix:指定安装目录
-fPIC:编译openssl的静态库
enable-shared:编译动态库
加入环境变量,以便方便使用openssl命令:
echo "export PATH=\$PATH:/usr/local/openssl/bin" >>/etc/profile
source /etc/profile
查看安装版本
openssl version -a
4、安装Apr
5、安装Apr-util
6、安装Tomcat-Native
7、启动tomcat校验