Title | 우분투에서 mod_jk.so 모듈 만들기 Create mod_jk.so module in Ubuntu | ||||||
Writer | 이지섭 | Write Date | Feb 19 2018 | Modify Date | Aug 9 2024 | View Count | 3869 |
The link between Apache and Tomcat in Linux Ubuntu.
How to compile and create the mod_jk.so module. To compile the source, you must have a "gcc" and "make" program.
You can install these programs as follows : $ sudo apt-get update $ sudo apt-get upgrade $ sudo apt-get install build-essential Or $ sudo apt update $ sudo apt upgrade $ sudo apt install build-essential The following web page provides a detailed description :
(Source) https://www.cyberciti.biz/faq/howto-installing-gnu-c-compiler-development-environment-on-ubuntu/
The mod_jk.so program source is available for download at http://tomcat.apache.org/.
It is located in the "Tomcat Connectors" section of the download.
Download and extract the following file.
tomcat-connectors-1.2.42-src.tar.gz
Navigate to the "native" directory.
cd tomcat-connectors-1.2.42-src/native Assuming you installed the Apache in the folder /usr/local/apache2.
The apxs tool is provided in the Apache bin folder. You must check the apxs program. Check and install as follows :
./configure --with-apxs=/usr/local/apache2/bin/apxs make For Apache 2.x versions :
tomcat-connectors-1.2.42-src/native/apache-2.0 For Apache 1.3 :
tomcat-connectors-1.2.42-src/native/apache-1.3 in above folder, the "mod_jk.so" file is created.
You can copy this file to the modules folder in Apache (for example, /usr/local/apache2/modules).
Any series of courses can be referenced to the "tomcat-connectors-1.2.42-src/native/BUILDING.txt" file. | |||||||