步骤
- 下载Apache Tomcat Native Library源码包
- 安装好依赖
- 源码编码安装
下载源码
wget http://mirror.reverse.net/pub/apache/tomcat/tomcat-connectors/native/1.2.23/source/tomcat-native-1.2.23-src.tar.gz
安装依赖
yum install apr-devel openssl-devel java-1.8.0-openjdk-devel
编译安装
开始解压源码包:
tar zxvf tomcat-native-1.2.23-src.tar.gz
进入安装目录:
cd tomcat-native-1.2.23-src/native/
编译配置:
./configure --with-apr=/usr/bin/apr-1-config --with-java-home=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.181-7.b13.el7.x86_64 --with-ssl=yes --prefix=/var/xxx/bin
编译安装:
make && make install