TOMCAT 6.0 安装 APR for linux x86_64

本文介绍如何为Tomcat编译安装APR模块,包括所需的开发环境配置,如APR、OpenSSL及JNI头文件等。文中详细记录了从源码编译到最终配置环境变量的全过程。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Requirements:
APR 1.2+ development headers (libapr1-dev package)
OpenSSL 0.9.7+ development headers (libssl-dev package)
JNI headers from Java compatible JDK 1.4+
GNU development environment (gcc, make)
The wrapper library sources are located in the Tomcat binary bundle, in the bin/tomcat-native.tar.gz archive. Once the build environment is installed and the source archive is extracted, the wrapper library can be compiled using (from the folder containing the configure script):
./configure && make && make install


#apr-1.3.8.tar.gz
#tar zxvf apr-1.3.8.tar.gz
#cd apr-1.3.8
#./configure
#make
#make install
安装在/usr/local/apr

#apr-util-1.3.9.tar.gz
#tar zxvf apr-util-1.3.9.tar.gz
#cd apr-util-1.3.9   
#./configure --with-apr=/usr/local/apr   
#make  
#make install  
安装在/usr/local/apr/lib

安装 tomcat-native
#cd /usr/local/tomcat-6.0.20/bin   
#tar zxvf tomcat-native.tar.gz   
#cd tomcat-native-src/jni/native   
#./configure --with-apr=/usr/local/apr --with-java-home=/usr/java/jdk1.6.0_16   
#make  
#make install  

#cd /usr/local/tomcat-6.0.20/bin
#tar zxvf tomcat-native.tar.gz
#cd tomcat-native-src/jni/native
#./configure --with-apr=/usr/local/apr --with-java-home=/usr/java/jdk1.6.0_11
#make
#make install

设置 apr 的环境变量:
#vi /etc/profile   
#export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/apr/lib   
#source /etc/profile  

启动 tomcat 后, 看日志:
bin/startup.sh   
head logs/catalina.out

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值