The APR based Apache Tomcat Native library which allows optimal performance in production environmen
来源:互联网 发布:mac翻墙 编辑:程序博客网 时间:2024/06/07 05:01
The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/java/jdk1.5.0_22/jre/lib/i386/client:/usr/java/jdk1.5.0_22/jre/lib/i386:/usr/java/jdk1.5.0_22/jre/../lib/i386:/usr/java
上面错误貌似对我项目的业务不影响。但每次看到这个问题于心不忍。这里分享一个解决方案
参考http://wander312.iteye.com/blog/1132975 写的非常好,感谢这个同学分享。
pr 与 tomcat-native 提供更好的伸缩性、性能和集成到本地服务器技术。
如果没有apr技术,启动tomcat 时出现如下提示:
信息:The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/java/jdk1.5.0_22/jre/lib/i386/client:/usr/java/jdk1.5.0_22/jre/lib/i386:/usr/java/jdk1.5.0_22/jre/../lib/i386:/usr/java
按照官方说明需要:
APR library
OpenSSL libraries
openssl 可以用 yum install openssl-devel,apr还是下载*.gz来安装。
a)apr-1.3.2.tar.gz(下载URL:http://www.apache.org/dist/apr/apr-1.5.1.tar.gz)
b)apr-util-1.3.2.tar.gz(下载URL:http://www.apache.org/dist/apr/apr-util-1.3.12.tar.gz)
c)tomcat-native.tar.gz 可以在tomcat/bin目录下找到。
1)安装 apr
wget http://apache.mirror.phpchina.com/apr/apr-1.5.1.tar.gz
tar zxvf apr-1.5.1.tar.gz
cdapr-1.5.1
./configure
make
make install
apr 默认安装在 /usr/local/apr
2)安装 apr-util
wget http://apache.mirror.phpchina.com/apr/apr-util-1.5.3.tar.gz
tar zxvf apr-util-1.5.3.tar.gz
cd apr-util-1.5.3
./configure --with-apr=/usr/local/apr
make
make install
3)安装 tomcat-native
cd /usr/local/tomcat-6.0.37/bin
tar zxvf tomcat-native.tar.gz
cd tomcat-native-1.1.27-src/jni/native
./configure --with-apr=/usr/local/apr --with-java-home=/usr/java/jdk1.5.0_22
make
make install
4)设置 apr 的环境变量:
vi /etc/profile
# 后面添加以下内容
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/apr/lib
# 使profile生效,
source /etc/profile
启动 tomcat 后, 看日志:
bin/startup.sh
head logs/catalina.out
可以看到以下结果:
信息: Loaded APR based Apache Tomcat Native library 1.1.14.
2009-1-13 11:12:51 org.apache.catalina.core.AprLifecycleListener init
信息: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
- The APR based Apache Tomcat Native library which allows optimal performance in production environmen
- The APR based Apache Tomcat Native library which allows optimal performance in production environmen
- The APR based Apache Tomcat Native library which allows optimal performance in production environmen
- The APR based Apache Tomcat Native library which allows optimal performance in production environmen
- The APR based Apache Tomcat Native library which allows optimal performance in production environmen
- The APR based Apache Tomcat Native library which allows optimal performance in production environmen
- The APR based Apache Tomcat Native library which allows optimal performance in production environmen
- The APR based Apache Tomcat Native library which allows optimal performance in production environmen
- The APR based Apache Tomcat Native library which allows optimal performance in production environmen
- The APR based Apache Tomcat Native library which allows optimal performance in production environmen
- The APR based Apache Tomcat Native library which allows optimal performance in production environmen
- The APR based Apache Tomcat Native library which allows optimal performance in production environmen
- The APR based Apache Tomcat Native library which allows optimal performance in production environmen
- The APR based Apache Tomcat Native library which allows optimal performance in production environmen
- The APR based Apache Tomcat Native library which allows optimal performance in production environmen
- The APR based Apache Tomcat Native library which allows optimal performance in production environmen
- tomcat启动提示The APR based Apache Tomcat Native library which allows optimal performance in production
- tomcat:The APR based Apache Tomcat Native library which allows optimal performance in production问题解决
- Uva10003 线性DP
- Uploadify 3.2 参数属性、事件、方法函数详解
- 代码手写UI,xib和StoryBoard间的博弈,以及Interface Builder的一些小技巧
- 华为机试 - 9进制和11进制转10进制
- 苹果推
- The APR based Apache Tomcat Native library which allows optimal performance in production environmen
- SRM 627 D2L3: BubbleSortWithReversals, dp, 冒泡排序
- NYOJ 2 括号配对问题
- HDU 3038 How Many Answers Are Wrong 并查集 + 权值
- 周测题 河南理工的ACMer要开始组队了 (数学,递推)
- Linux学习笔记(三)Linux文件操作
- HDU 1068 Girls and Boys(最大独立集合)
- can not be used when making a shared object; recompile with -fPIC
- HTML利用第三方框架HTML Parser解析