在安装好jdk与tomcat之后,会在tomcat启动log信息里提示:
信息: 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
tar.gz版本的tomcat不会安装好apr,需要单独编译安装。

下载地址
apr-1.5.2.tar:http://archive.apache.org/dist/apr/apr-1.5.2.tar.gz

需要的几个环境
#yum -y install autoconf // 安装autoconf
#yum -y install libtool // 安装libtool
#yum -y install openssl openssl-devel // 安装openssl

1.安装apr
#tar xvzf apr-1.5.2.tar.gz // 解压apr-1.5.2.tar.gz
#cd apr-1.5.2 // 进入apr-1.5.2目录
#./configure --prefix=/usr/apr // 指定安装到/usr/apr目录
#make
#make install

2.安装tomcat-native
#cd /usr/tomcat/apache-tomcat-7.0.59/bin // 切换目录,在tomcat/bin目录下找到tomcat-native.tar.gz;
#tar xvzf tomcat-native.tar.gz // 解压tomcat-native.tar.gz
#cd /usr/tomcat/apache-tomcat-7.0.59/bin/tomcat-native-1.1.32-src/jni/native // 切换目录
#./configure --with-apr=/usr/apr --with-java-home=/usr/java/jdk1.7.0_72 --with-ssl=/usr/bin --prefix=/usr/apr // 指定之前安装的目录
#make
#make install

3.修改环境变量
#vi /etc/profile
在最后增加
export LD_LIBRARY_PATH=/usr/apr/lib
#source /etc/profile // 使配置生效
GitHub 加速计划 / li / linux-dash
13
2
下载
A beautiful web dashboard for Linux
最近提交(Master分支:4 个月前 )
186a802e added ecosystem file for PM2 5 年前
5def40a3 Add host customization support for the NodeJS version 5 年前
Logo

AtomGit 是由开放原子开源基金会联合 CSDN 等生态伙伴共同推出的新一代开源与人工智能协作平台。平台坚持“开放、中立、公益”的理念,把代码托管、模型共享、数据集托管、智能体开发体验和算力服务整合在一起,为开发者提供从开发、训练到部署的一站式体验。

更多推荐