The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
由代碼可知是缺乏APR模塊致使的錯誤。php
1.安裝APRhtml
wget http://apache.mirror.phpchina.com/apr/apr-1.3.2.tar.gz tar zxvf apr-1.3.2.tar.gz cd apr-1.3.2 ./configure make make install apr 默認安裝在 /usr/local/apr
2.安裝apr-utiljava
wget http://apache.mirror.phpchina.com/apr/apr-util-1.3.2.tar.gz tar zxvf apr-util-1.3.2.tar.gz cd apr-util-1.3.2 ./configure --with-apr=/usr/local/apr make make install 安裝 tomcat-native
3.安裝tomcat-nativeapache
在tomcat/bin目錄下已有安裝包tomcat
cd /usr/local/tomcat/bin
tar zxvf tomcat-native.tar.gz
cd tomcat-native-1.2.7-src/native
./configure --with-apr=/usr/local/apr --with-java-home=/usr/local/java
make make install
-----------------------------------------------------------------------------------------------------------------------------------------------ui
在這裏出現了安裝錯誤this
checking for gcc option to accept ISO C89... none needed checking for OpenSSL library... using openssl from /usr/lib and /usr/include checking OpenSSL library version >= 1.0.2... Found OPENSSL_VERSION_NUMBER 0x10000003 (OpenSSL 1.0.0 29 Mar 2010) Require OPENSSL_VERSION_NUMBER 0x1000200f or greater (1.0.2) configure: error: Your version of OpenSSL is not compatible with this version of tcnative
由錯誤可知openssl的版本太低spa
升級opensslcode
查看升級操做orm
-----------------------------------------------------------------------------------------------------------------------------------------------
4.設置APR的環境變量
vi /etc/profile後面添加export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/apr/lib使設置生效source /etc/profile