Home PC Games Linux Windows Database Network Programming Server Mobile  
  Home \ Server \ APR for Tomcat installation under Linux     - How Oracle implements random reads from specific combinations (Database)

- Depth understanding of the use of Spring Redis (Programming)

- Job achieve automation in Ubuntu 14.04 - Using Cron (Linux)

- C ++ sequence containers basics summary (Programming)

- Linux System Getting Started Learning: After starting in Ubuntu or Debian, enter the command line (Linux)

- Java implementation file encryption and decryption (Programming)

- To install minimize RHEL / CentOS 7 (Linux)

- Java, on the dfile.encoding Systemproperty (Programming)

- Linux System Getting Started Learning: modify environment variables in Linux PATH (Linux)

- The wrong in Linux: too many open files (Linux)

- Ubuntu uses under KVM + Qemu virtual machine build (Linux)

- CentOS7 virtual machine settings, and bridging problems (Linux)

- Let Linux boot methods to enter characters interface and set FrameBuffer resolution methods (Linux)

- Android Studio Getting Started Hello World (Programming)

- Linux boot the system does not display a progress bar setting method (Linux)

- Use MongoDB C # MongoDB official driving operation (Database)

- Hadoop new and old version of the difference in the size of the InputSplit (Server)

- RedHat Performance Tuning (Server)

- Ubuntu 14.04 build Hadoop 2.5.1 standalone and pseudo-distributed environment (32-bit) (Server)

- Linux System Getting Started Tutorial: How to Force Change your password at next logon Linux (Linux)

  APR for Tomcat installation under Linux
  Add Date : 2018-11-21      

I. Introduction

APR: Apache Portable Run-time libraries, Apache Portable Runtime library. In earlier versions of Apache, the application itself must be able to deal with the specific details of the operating system platform and calling different handlers for different platforms. With the further development of the Apache, Apache decided to organize these generic functions independent and develop into a new project. Thus, APR development on independence out from Apache, Apache is only using the APR only.

Tomcat Native: This project allows the use of Apache Tomcat package to deal with the apr including file and network IO operations to improve performance.

II. you need to install the program

The latest version of apr

The latest version of the apr-util


The first two can be downloaded from http://apr.apache.org/, the last one in the bin directory under tomcat.

III, the installation

1 install apr

The latest installer apr apr-1.5.2.tar.gz downloaded to any directory, such as / root / directory.

cd / root /

wget http://apr.apache.org/apr-1.5.2.tar.gz

tar zxvf apr-1.5.2.tar.gz

cd apr-1.5.2 /

./ configure --prefix = / usr / local / apr


make install

Note that the prefix parameter is used to specify the installation path.

2 installation apr-util

cd / root /

wget http://apr.apache.org/apr-util-1.5.4.tar.gz

tar zxvf apr-util-1.5.4.tar.gz

cd apr-util-1.5.4 /

./ configure --prefix = / usr / local / apr-util --with-apr = / usr / local / apr


make install

3 installation tomcat-native

The author of tomcat directory /usr/local/apache-tomcat-7.0.63

cd /usr/local/apache-tomcat-7.0.63/bin /

tar zxvf tomcat-native.tar.gz

cd tomcat-native-1.1.33-src / jni / native /

./ configure --with-apr = / usr / local / apr --with-java-home = / etc / alternatives / java_sdk_1.7.0


make install

IV. apr set environment variables

Add the following in the / etc / profile in

export LD_LIBRARY_PATH = $ LD_LIBRARY_PATH: / usr / local / apr / lib

Once saved so that profile to take effect

source / etc / profile

V. verify

cd /usr/local/apache-tomcat-7.0.63/bin /

./ catalina.sh run

In the vicinity of the 35th row to see if the log output following the installation was successful

INFO: Loaded APR based Apache Tomcat Native library 1.1.33 using APR version 1.5.2


Jan 30, 2016 4:46:57 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent

INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true]

- ActiveMQ memory settings and flow control (Linux)
- SSH automatic disconnection problem solving (Linux)
- Linux system boot process detail (Linux)
- Android start automatically and add and delete a desktop shortcut (Programming)
- C ++ Supplements - malloc free and new delete the same and different (Programming)
- Packages with Snort intrusion monitoring light (Linux)
- The official release method to upgrade to Ubuntu 15.04 (Linux)
- Under Ubuntu on how to use iptables firewall (Linux)
- Python virtual environment: Virtualenv (Linux)
- Basic Operation Linux files and directories (Linux)
- How to find an IP address through the command line (Linux)
- How Datadog monitor Nginx (Server)
- Recover Ubuntu 14.04 wakes up from standby in case mouse keyboard appears dead (Linux)
- 30 minutes with your Quick Start MySQL Tutorial (Database)
- Two alert log ORA Errors (Database)
- Android float ball and boot from the start (Programming)
- Windows 8.1 hard drive to install Ubuntu 14.04 dual system reference tutorials and multi-drive Precautions (Linux)
- Use Ansible efficient delivery Docker container (Server)
- Talking about modern programming language syntax and standard library tightly bound phenomenon (Programming)
- To install and deploy Apache under the CentOS (Server)
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.