Home PC Games Linux Windows Database Network Programming Server Mobile  
  Home \ Server \ APR for Tomcat installation under Linux     - shell-like program (Programming)

- Oracle 12c of the auto-increment Identity Columns (Database)

- Installation Enpass secure password manager on Ubuntu (Linux)

- mysqldump implement database logical backup (Database)

- Linux cut Command Study Notes (Linux)

- How to back up Debian system backupninja (Linux)

- Video editing captions under Linux (Linux)

- iOS in Singleton (Programming)

- Use CutyCapt to convert HTML pages to png images on Linux (Linux)

- Git remote repository Explanation (Linux)

- CentOS 6.5 start ActiveMQ being given to solve (Server)

- Linux Command Study Notes (Linux)

- Two alert log ORA Errors (Database)

- Configuring Android NDK development environment for Mac OS X (Linux)

- Ubuntu users to install the system indicator SysPeek 0.3 (Linux)

- Linux Change ssh port and disable remote root login at (Linux)

- FreeBSD install Gnome 3 Desktop (Linux)

- The difference Docker save and export commands (Linux)

- FreeRadius installation process record (Linux)

- Tmux create the perfect terminal management tool under CentOS (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]

- Oracle RAC node on the expulsion of the inspection process on OEL6.3 (Database)
- Install and configure GO 1.2.1 under CentOS 6.5 (Linux)
- CentOS 7 source code to compile and install PHP5.6 Nginx1.7.9 and MySQL (LNMP build environment) (Server)
- Struts2 interceptor simulation (Programming)
- CentOS 6.5 installation and deployment SVN 1.8.10 (Linux)
- CentOS 7 Test Marathon start Docker container (Server)
- Spring MVC Exception Handling (Programming)
- Run two MySQL service on one server (Database)
- About the replication of JavaScript (Programming)
- To achieve Linux Security (Linux)
- OpenNMS compile under Linux (Server)
- Linux system boot process detail (Linux)
- Service Discovery: Zookeeper vs etcd vs Consul (Server)
- An Example of GoldenGate Extract Process Hang Problem Solving (Database)
- Sublime Text Add instructions to insert the current time zone (Linux)
- CentOS 6.2 install git error Perl5 (Linux)
- Ubuntu How to install Pacman (Linux)
- Cacti Linux-based system monitoring and alarm (Linux)
- Learning MySQL data types (Database)
- Linux environment variable configuration (Linux)
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.