What is the best way to install Mod_jk on linux to run apache in front of tomcat

前端 未结 2 1572
无人共我
无人共我 2021-02-06 13:06

I am using Wordpress for my blog and my main project is in java using tomcat server so I want each request coming to my server to go through apache.

For exemple if my s

2条回答
  •  抹茶落季
    2021-02-06 14:07

    These steps are for installing it in RHEL/Centos, Other things remain same from Stefan's answer

    #Install httpd
    sudo yum install httpd
    #Check if the httpd -l command has mod_so.jk.
    
    sudo yum install httpd-devel
    sudo yum install gcc
    sudo yum install libtool
    
    wget http://supergsego.com/apache/tomcat/tomcat-connectors/jk/tomcat-connectors-1.2.41-src.tar.gz
    
    tar -xvf tomcat-connectors-1.2.41-src.tar.gz
    cd tomcat-connectors-1.2.41-src
    cd native
    
    ./configure -with-apxs=/usr/sbin/apxs 
    make
    
    #Now use libtool to move the mod_jk.so to /etc/httpd/modules
    #You are probably good to go now.
    

提交回复
热议问题