免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1910 | 回复: 0
打印 上一主题 下一主题

TOMCAT 6.0 安装 APR for linux x86_64 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-10-14 17:35 |只看该作者 |倒序浏览


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


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/598/showart_2070372.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP