Tomcat Native概述
The Apache Tomcat Native Library is an optional component for use with Apache Tomcat that allows Tomcat to use certain native resources for performance, compatibility, etc.
Specifically, the Apache Tomcat Native Library gives Tomcat access to the Apache Portable Runtime (APR) library’s network connection (socket) implementation and random-number generator. See the Apache Tomcat documentation for more information on how to configure Tomcat to use the APR connector.
Features of the APR connector:
- Non-blocking I/O for Keep-Alive requests (between requests)
- Uses OpenSSL for TLS/SSL capabilities (if supported by linked APR library)
- FIPS 140-2 support for TLS/SSL (if supported by linked OpenSSL library)
可见以下安装脚本
安装依赖
系统依赖
debian based linux
1 | apt-get install libapr1-dev libssl-dev |
rpm based linux
1 | yum install apr-devel openssl-devel |
apr
1 | tar xvzf apr-1.4.5.tar.gz -C /usr/local/ |
openssl
1 | tar xvzf openssl-1.0.2g.tar.gz -C /usr/local/ |
jdk
1 | tar xvzf jdk-7u79-linux-x64.tar.gz -C /usr/local/ |
安装native
官方地址:https://tomcat.apache.org/download-native.cgi
1 | tar xvzf tomcat-native-1.2.5-src.tar.gz -C /usr/local/ |