Chinaunix首页 | 论坛 | 博客
  • 博客访问: 756109
  • 博文数量: 160
  • 博客积分: 2516
  • 博客等级: 大尉
  • 技术积分: 1511
  • 用 户 组: 普通用户
  • 注册时间: 2004-10-24 17:58
文章分类

全部博文(160)

文章存档

2019年(2)

2018年(3)

2017年(15)

2016年(3)

2015年(11)

2014年(3)

2013年(1)

2012年(3)

2011年(17)

2010年(25)

2009年(17)

2008年(13)

2007年(14)

2006年(21)

2005年(10)

2004年(2)

分类: Java

2009-10-14 17:35:50

 

TOMCAT 6.0 安装 APR for linux x86_64

 

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 

 

apache下载APR 

阅读(2195) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~