Centos 6.9 Install opensll1.1.0f

下载openssl
wget ftp://ftp.openssl.org/source/openssl-1.1.0f.tar.gz

解压openssl
tar -zxvf openssl-1.1.0f.tar.gz

编译安装
cd openssl-1.1.0f
./config --prefix=/usr/local/openssl -fPIC
make
make install

mv /usr/bin/openssl ~

ln -s /usr/local/openssl/bin/openssl /usr/bin/openssl

openssl version

开启apr
/usr/local/tomcat9/bin
tar -zxvf tomcat-native.tar.gz
cd /usr/local/tomcat9/bin/tomcat-native-1.2.12-src/native
./configure --with-apr=/usr/local/apr --with-java-home=/usr/local/jdk1.8  --with-ssl=/usr/local/openssl
make
make install

查看输入信息
cat /usr/local/tomcat9/logs/catalina.out
13-Jun-2017 15:29:48.075 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent Loaded APR based Apache Tomcat Native library [1.2.12] using APR version [1.5.2].
13-Jun-2017 15:29:48.075 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
13-Jun-2017 15:29:48.075 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR/OpenSSL configuration: useAprConnector [false], useOpenSSL [true]

你可能感兴趣的:(Centos 6.9 Install opensll1.1.0f)