标签:添加 oca tar.gz efi nbsp XML apach java usr
1)安装apr
tar zxvf apr-1.5.2.tar.gz
cd /root/soft/apr-1.5.2
./configure --prefix=/usr/local/apr
make && make install
2)安装apr-iconv
cd ../
tar -zxvf apr-iconv-1.2.1.tar.gz
cd /root/soft/apr-iconv-1.2.1
./configure --prefix=/usr/local/apr-iconv --with-apr=/usr/local/apr
make && make install
3)安装apr-util
cd ../
tar zxvf apr-util-1.5.4.tar.gz
cd /root/soft/apr-util-1.5.4
./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr --with-apr-iconv=/usr/local/apr-iconv/bin/apriconv
make && make install
4)安装tomcat-native
cd /root/soft/apache-tomcat-7.0.69/bin
tar zxvf tomcat-native.tar.gz
cd /root/soft/apache-tomcat-7.0.69/bin/tomcat-native-1.1.33-src/jni/native
./configure --with-apr=/usr/local/apr --with-java-home=/root/soft/jdk1.8.0_101/
make && make install
5)添加环境变量
vim /etc/profile #在他文件末尾处添加下面的变量
# apr ma
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/apr/lib
执行
source /etc/profile
此时环境变量生效果
6)修改server.xml
配置文件中protocol修改成org.apache.coyote.http11.Http11AprProtocol
7)重新启动tomcat
标签:添加 oca tar.gz efi nbsp XML apach java usr
原文地址:http://www.cnblogs.com/Auraro/p/7229705.html