Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

How does Tomcat integrate APR?

Shulou Source: shulou.com Published: 2022-06-03 07:30:04 11月23日 Update

1. Download address of soft ring

Software link address

Https://files.cnblogs.com/files/jinrf/openssl-1.0.2-latest.tar.gz

Https://files.cnblogs.com/files/jinrf/apr-util-1.6.1.tar.gz

Https://files.cnblogs.com/files/jinrf/apr-1.6.3.tar.gz

Add dependencies

Yum-y install openssl-devel gcc gcc-c++ make expat-devel

Yum-y install openssl openssl-devel cyrus-sasl libtool-ltdl libtool-ltdl-devel db4 db4-devel expect expect-devel pcre pcre-devel

Third, upgrade openssl-devel

Upload openssl-1.0.2-latest.tar.gz to the server

Decompression

Tar-xzvf openssl-1.0.2-latest.tar.gz

Enter:

Cd openssl-1.0.2t

Installation:

. / config-- prefix=/usr/local/openssl-fPIC

Make

Make install

Delete the old version:

Mv / usr/bin/openssl ~

Create:

Ln-s / usr/local/openssl/bin/openssl / usr/bin/openssl

View the version number:

Openssl version

Fourth, install apr

Decompress:

Tar-zxf apr-1.6.3.tar.gz

Enter:

Cd apr-1.6.3

Installation:

. / configure-- prefix=/usr/local/apr

Make

Make install

5. Install apr-util

Decompress:

Tar-zxf apr-util-1.6.1.tar.gz

Enter:

Cd apr-util-1.6.1

Installation:

. / configure-prefix=/usr/local/apr-util-with-apr=/usr/local/apr

Make

Make install

Configure environment variables:

Export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/apr/lib

6. Install tomcat-native

Enter the bin directory of tomcat_home: tomcat-native.tar.gz

Decompress:

Tar-zxf tomcat-native.tar.gz

Enter:

Cd tomcat-native-1.2.23-src/native/

Installation:

. / configure-with-apr=/usr/local/apr-with-ssl=/usr/local/openssl

Make

Make install

VII. Integration

Edit ${TOMCAT_HOME} / bin/catalina.sh to join:

JAVA_OPTS= "$JAVA_OPTS-Djava.library.path=/usr/local/apr/lib"

Edit ${TOMCAT_HOME} / conf/server.xml to configure:

Protocol= "org.apache.coyote.http11.Http11AprProtocol"

Start the check:

Tags: Address version configuration integration variables server environment directory software links upgrades services check Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MariaDB Xiaomi Shulou Tech Info Redmi Linux