Configure tomcat run port 80 using mod_jk on CentOS 7.

This document covers the basic steps to configure tomcat run port 80 using mod_jk on CentOS 7.


1. Install JDK

# yum install -y java-1.7.0-openjdk.x86_64

 2. Install tomcat.

# yum install tomcat

 3. install Apache.

# yum install httpd

4.  Install mod_jk

 4.1 Download tomcat-connector.

# wget

# tar zxf tomcat-connectors-1.2.37-src.tar.gz

# cd tomcat-connectors-1.2.37-src/native


 4.2 Install some necessary package to compile tomcat-connector.

# yum install -y httpd-devel gcc gcc-c++ make libtool


4.3 Compile the tomcat-connector.

# ./configure –with-apxs=/usr/sbin/apxs

# make

# libtool –finish /usr/lib64/httpd/modules


4.4 Install the tomcat-connector.

# make install


5. Configuring apache and mod_jk.

5.1 Include mod_jk into the Apache.

# vi /etc/httpd/conf.d/mod_jk.conf

<IfModule mod_jk.c>

JkWorkersFile /etc/httpd/conf/

JkLogFile  /var/log/jk.log

JkShmFile  /var/log/jk-runtime-status



5.2 Configuring worker.

# vi /etc/httpd/conf/






1 Comment

  1. I’m not that much of a internet reader to be honest but your blogs
    really nice, keep it up! I’ll go ahead and
    bookmark your website to come back down the road. Many thanks

Leave a Reply