install tomcat-native on linux

阅读更多

 

wget http://mirror.bjtu.edu.cn/apache/apr/apr-1.4.4.tar.gz
tar -xvf apr-1.4.4.tar.gz
mv apr-1.4.4 apr-1.4.4-src
cd apr-1.4.4-src
./configure --prefix=$HOME/apr-1.4.4

cd $HOME/tomcat6/bin
tar -xvf tomcat-native.tar.gz
cd ./tomcat-native-1.1.20-src/jni/native
./configure --prefix=$HOME/tomcat6 --with-apr=$HOME/apr-1.4.4

make
make install


ln -s $HOME/tomcat6/lib/libtcnative-1.so $JAVA_HOME/jre/lib/amd64/libtcnative-1.so
或者
cp $HOME/tomcat6/lib/libtcnative-1.so $JAVA_HOME/jre/lib/amd64/

你可能感兴趣的:(tomcat,apr,ibtcnative-1.so)