Install nativelibrary of tomcat

Source: Internet
Author: User
Install nativelibrary of tomcat-Linux Enterprise Application-Linux server application information. For more information, see. This problem often occurs after tomcat 5 is installed. The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java. library. path: ××××××××××; ××××××××× always appears in the first line of logs.

To solve this problem, we need to install the native library and give a summary of the installation methods under windows and linux respectively.

It is troublesome in linux. I use redhat.

1: first download and install the apr package. I used the apr-1.2.12.tar.gz to download and run./configure | make install three commands in turn.

2: There is a bound native library package under the installation directory of tomcat. Decompress the package and enter the directory with build. xml. You can download the package by yourself. Run./configure -- with-apr = "/usr/local/apr/" (default installation path of apr. Of course, you can also write your own installation path)

3: Run make | make install in sequence under the same directory

4: After the prompt "build successful" is displayed, you need to set the environment variable. Select any one of the prompts. I set export LD_LIBRARY_PATH =/usr/local/apr/lib

Restart tomcat to solve the problem.
Related Article

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.