The APR based Apache Tomcat Native Library Tomcat startup error

Source: Internet
Author: User
Tags openssl library apache tomcat

The APR based Apache Tomcat Native Library which allows optimal performance in production environments is not found on th E Java.library.path:/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib

This is known by the code as an error caused by the lack of APR modules.

1. Install Apr

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  

2. Installing Apr-util

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 and  install  

3. Installing tomcat-native

Installation packages already available in the Tomcat/bin directory

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 

--------------------------------------------------------------------------------------------------------------- --------------------------------

An installation error has occurred here

Checking for GCC option to accept ISO C89 ... none neededchecking for OpenSSL library ... using OpenSSL from/usr/lib and/u Sr/includechecking OpenSSL library version >= 1.0.2...Found   openssl_version_number 0x10000003 (OpenSSL 1.0.0 29 Mar) Require Openssl_version_number 0x1000200f or greater (1.0.2) Configure:error:Your VERSION of OPENSSL is not comp Atible with this version of Tcnative

The version of OpenSSL is too low by mistake

Upgrade OpenSSL

View Upgrade Actions

--------------------------------------------------------------------------------------------------------------- --------------------------------

4. Setting environment variables for APR

Vi/etc/profile

Added later

Export Ld_library_path= $LD _library_path:/usr/local/apr/lib

Make settings effective

Source/etc/profile

The APR based Apache Tomcat Native Library Tomcat startup error

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.