CentOS安装Tomcat配置APR

阅读更多
下载
wget https://archive.apache.org/dist/tomcat/tomcat-7/v7.0.55/bin/apache-tomcat-7.0.55.tar.gz

解压
tar -zxvf apache-tomcat-7.0.55.tar.gz

安装APR
cd /home/web/apache-tomcat-7.0.55/bin
tar -zxvf tomcat-native.tar.gz
cd tomcat-native-1.1.31-src/jni/native
yum -y install gcc
yum -y install apr-devel
./configure --with-apr=/usr/bin/apr-1-config --with-java-home=/usr/java/jdk1.8.0_161
make
make install

配置APR
vi /etc/profile
增加export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/apr/lib
source /etc/profile
cd /home/web/apache-tomcat-7.0.55/conf
vi server.xml
修改
修改
JAVA_OPTS="$JAVA_OPTS -server -Xms35152m -Xmx35152m -XX:NewSize=512m -XX:MaxNewSize=512m -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+CMSParallelRemarkEnabled"

你可能感兴趣的:(CentOS安装Tomcat配置APR)