分类: 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 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-
#tar zxvf apr-
#cd apr-
#./configure
#make
#make install
安装在/usr/local/apr
#apr-util-
#tar zxvf apr-util-
#cd apr-util-
#./configure --with-apr=/usr/local/apr
#make
#make install
安装在/usr/local/apr/lib
安装 tomcat-native
#cd /usr/local/tomcat-
#tar zxvf tomcat-native.tar.gz
#cd tomcat-native-src/jni/native
#./configure --with-apr=/usr/local/apr --with-java-home=/usr/java/jdk
#make
#make install
#cd /usr/local/tomcat-
#tar zxvf tomcat-native.tar.gz
#cd tomcat-native-src/jni/native
#./configure --with-apr=/usr/local/apr --with-java-home=/usr/java/jdk
#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