Install Tomcat JK connector

Tomcat connector is a protocol communicating between Apache Httpd server and Tomcat server. Usually we call it Tomcat JK connector(JK name comes from Tomcat JK project). Currently we use AJP1.3 protocol(AJP1.2 is deprecated).
For detail, please refer to http://tomcat.apache.org/connectors-doc/

  1. Download source code
    It’s not recommended to use pre-compiled JK connector binary in Linux environment. We build it from the source code. Please download it from http://www.apache.org/dist/tomcat/tomcat-connectors/jk/
  2. Unzip the compressed file
  3. Find the directory of apxs program.
    This step requires the apxs program from Apache Httpd. We have to find the apxs folder.
    Example. /usr/local/apache-2.2.24/bin/apxs
  4. Make the mod_jk.so
    In command-line console, type

        ./configure --with-apxs=/usr/local/apache-2.2.24/bin/apxs
        make
        

    The compiled mod_jk.so will be created in native/apache-2.0 folder

oliver

Leave a Reply

Your email address will not be published.