2013年9月13日 星期五
CentOS6 Tomcat6 APR Install
to Resolve the catalina.log
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/java
/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
1.
yum install gcc
yum install apr-devel openssl-devel java-1.7.0-openjdk-devel
wget http://archive.apache.org/dist/apr/apr-1.4.8.tar.gz
wget http://apache.stu.edu.tw//tomcat/tomcat-connectors/native/1.1.27/source/tomcat-native-1.1.27-src.tar.gz
tar -zxvf apr-1.4.8.tar.gz
tar -zxvf tomcat-native-1.1.27-src.tar.gz
2.
cd apr-1.4.8
./configure
make
make install
3.
cd ../tomcat-native-1.1.27-src/jni/native/
./configure --with-apr="/usr/local/apr" --with-java-home="/usr/lib/jvm/java-1.7.0" --with-ssl=yes
make
make install
4.
cd /usr/lib
ln -s /usr/local/apr/lib/libapr-1.so.0.4.8 lib-apr-1.so
ln -s /usr/local/apr/lib/libapr-1.so.0.4.8 lib-apr-1.so.0
ln -s /usr/local/apr/lib/libtcnative-1.so.0.1.27 libtcnative-1.so
ln -s /usr/local/apr/lib/libtcnative-1.so.0.1.27 libtcnative-1.so.0
service tomcat6 restart
more /var/log/tomcat6/catalina.out
5.
check
INFO: Loaded APR based Apache Tomcat Native library 1.1.27.
訂閱:
張貼留言 (Atom)
沒有留言:
張貼留言