`
lu2002lulu
  • 浏览: 95041 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

redhat下为tomcat6配置APR及问题处理

阅读更多
1、解压TOMCAT-6.018安装目录下/bin/tomcat-native.tar.gz
2、进入解压后的目录/bin/tomcat-native-1.1.14-src/jni/native
3、运行./configure
4、如果运行./configure提示:
            "checking for APR... no
             configure: error: APR could not be located. Please use the --with-apr option."
             需要先按装APR,步骤如下:
      从http://apr.apache.org/下载APR(如Apache Portable Runtime 1.3.3)及APR-util(apr-util-1.3.4.tar.gz)
      4.1先安装APR
         解压 apr-1.3.3.tar.gz
  进入解压后的目录依次运行
   ./configure
   make
   make install
       4.2后安装APR-util
                 解压 apr-util-1.3.4.tar.gz
   进入解压后的目录依次运行
   ./configure
   make
   make install
              4.3 进入/bin/tomcat-native-1.1.14-src/jni/native
           运行: sh buildconf --with-apr=/apr-1.3.3   (apr所在目录)
           ./configure --with-apr=/apr-1.3.3
5、在/bin/tomcat-native-1.1.14-src/jni/native,运行 make 和 make install
6、设置环境变量,在/etc/profile里添加
    LD_LIBRARY_PATH=$CATALINA_HOME/lib:/usr/local/apr/lib:/usr/local/apr
    export LD_LIBRARY_PATH
7、设置TOMCAT启动参数
    在catalina.sh 加入启动参数: CATALINA_OPTS="$CATALINA_OPTS -Djava.library.path=/usr/local/apr/lib"
    (在语句echo "Using CATALINA_BASE:   $CATALINA_BASE"的上一行)

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics