The APR based Apache Tomcat Native library which allows ...java.library...异常
来源:互联网 发布:古藤动漫怎么样知乎 编辑:程序博客网 时间:2024/04/28 13:03
The APR based Apache Tomcat Native library which allows ...java.library...异常
tomat在linux服务器上启动报The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/local/jdk1.6.0_26/jre/lib/i386/server:/usr/local/jdk1.6.0_26/jre/lib/i386:/usr/local/jdk1.6.0_26/jre/../lib/i386:/usr/java/packages/lib/i386:/lib:/usr/lib
异常解决方法:
apr 与 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.6.0_06/jre/lib/i386/client:/usr/java/jdk1.6.0_06/jre/lib/i386:/usr/java/jdk1.6.0_06/jre/../lib/i386:/usr/java/packages/lib/i386:/lib:/usr/lib
按照官方说明需要:
APR library
OpenSSL libraries
openssl 可以用 yum install openssl-devel,apr还是下载*.gz来安装。
apr-1.3.2.tar.gz(下载URL:http://www.apache.org/dist/apr/apr-1.4.5.tar.gz)
apr-util-1.3.2.tar.gz(下载URL:http://www.apache.org/dist/apr/apr-util-1.3.12.tar.gz)
tomcat-native.tar.gz 可以在tomcat/bin目录下找到。
安装 apr
wget http://apache.mirror.phpchina.com/apr/apr-1.3.2.tar.gz
tar zxvf apr-1.3.2.tar.gz
cd apr-1.3.2
./configure
make
make install
apr 默认安装在 /usr/local/apr
安装 apr-util
wget http://apache.mirror.phpchina.com/apr/apr-util-1.3.2.tar.gz
tar zxvf apr-util-1.3.2.tar.gz
cd apr-util-1.3.2
./configure --with-apr=/usr/local/apr
make
make install
安装 tomcat-native
cd /usr/local/tomcat-6.0.18/bin
tar zxvf tomcat-native.tar.gz
cd tomcat-native-1.1.14-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
# 使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].
异常解决方法:
apr 与 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.6.0_06/jre/lib/i386/client:/usr/java/jdk1.6.0_06/jre/lib/i386:/usr/java/jdk1.6.0_06/jre/../lib/i386:/usr/java/packages/lib/i386:/lib:/usr/lib
按照官方说明需要:
APR library
OpenSSL libraries
openssl 可以用 yum install openssl-devel,apr还是下载*.gz来安装。
apr-1.3.2.tar.gz(下载URL:http://www.apache.org/dist/apr/apr-1.4.5.tar.gz)
apr-util-1.3.2.tar.gz(下载URL:http://www.apache.org/dist/apr/apr-util-1.3.12.tar.gz)
tomcat-native.tar.gz 可以在tomcat/bin目录下找到。
安装 apr
wget http://apache.mirror.phpchina.com/apr/apr-1.3.2.tar.gz
tar zxvf apr-1.3.2.tar.gz
cd apr-1.3.2
./configure
make
make install
apr 默认安装在 /usr/local/apr
安装 apr-util
wget http://apache.mirror.phpchina.com/apr/apr-util-1.3.2.tar.gz
tar zxvf apr-util-1.3.2.tar.gz
cd apr-util-1.3.2
./configure --with-apr=/usr/local/apr
make
make install
安装 tomcat-native
cd /usr/local/tomcat-6.0.18/bin
tar zxvf tomcat-native.tar.gz
cd tomcat-native-1.1.14-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
# 使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].
- tomcat The APR based Apache Tomcat Native library which allows ...java.library...异常
- The APR based Apache Tomcat Native library which allows ...java.library...异常
- The APR based Apache Tomcat Native library which allows ...java.library...异常
- The APR based Apache Tomcat Native library which allows ...java.library...异常
- tomat在linux服务器上启动报The APR based Apache Tomcat Native library which allows ...java.library...异常解决方法
- Tomcat 报错的解决方法:The APR based Apache Tomcat Native library which allows optimal
- Tomcat启动时出现 The APR based Apache Tomcat Native library which allows optimal
- tomcat 问题: "The APR based Apache Tomcat Native library which allows optimal perf
- 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
- tomcat 问题: "The APR based Apache Tomcat Native library which allows optimal perf
- tomcat 问题: "The APR based Apache Tomcat Native library which allows optimal perf
- tomcat:The APR based Apache Tomcat Native library which allows optimal performance in production问题解决
- java运行Tomcat提示:The APR based Apache Tomcat Native library which allows optimal performance in produc
- The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java
- The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java
- The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java
- The APR based Apache Tomcat Native library which allows optimal performance
- Concurrent In Java
- ehcache中的timeToLiveSeconds和timeToIdleSeconds时间
- Python多线程编程
- Eclipse rap 富客户端开发总结(12) -Rap 优化之组件的销毁
- jxl 与poi 区别
- The APR based Apache Tomcat Native library which allows ...java.library...异常
- JTS Geometry Operations(一)
- ajax回调函数执行顺序带来的同步异步问题
- django模板中直接使用session
- 存储分类分析:DAS、NAS、SAN
- @suppressWarnings("unchecked") java 中是什么意思
- 2012.2.21
- 哲理故事与管理之道(9)-善用员工的缺陷
- TinyMce介绍、环境配置与使用心得