Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How does Tomcat integrate APR?

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/03 Report--

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:

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report