1. dnf install autoconf libtool httpd-devel
2. wget https://dlcdn.apache.org/tomcat/tomcat-connectors/jk/tomcat-connectors-1.2.50-src.tar.gz
다운로드 : https://tomcat.apache.org/download-connectors.cgi
Apache Tomcat® - Tomcat Connectors (mod_jk) Downloads
You must verify the integrity of the downloaded files. We provide OpenPGP signatures for every release file. This signature should be matched against the KEYS file which contains the OpenPGP keys of Tomcat's Release Managers. We also provide SHA512 checksu
tomcat.apache.org
3. tar xvzf tomcat-connectors-1.2.50-src.tar.gz
4. 경로이동 /home/tomcatConn/tomcat-connectors-1.2.50-src/native
./configure --with-apxs=/usr/bin/apxs
make 에서 에러가 발생하는데 자바를 설치 안했다.
중간에 java 설치 진행
- yum install java-1.8.0-openjdk-devel.x86_64
- yum list installed | grep java
- which java
- readlink -f $(which java)
- java_path=$(readlink -f $(which java))
- echo $(dirname $(dirname $(dirname $java_path)))
5. make / make install Error 발생
→ dnf install redhat-rpm-config
이 후 make - make install
그러면 mod_jk.so 파일이 생성된다.(확인 : ls -al /etc/httpd/modules/mod_jk.so)

6. vi /etc/httpd/conf.modules.d/00-base.conf


7. vi /etc/httpd/conf/httpd.conf
- ServerName 추가

8. vi /etc/httpd/conf/workers.properties

worker port 는 tomcat 에 설정되는 포트 정보와 동일해야 한다.
9. tomcat server.xml 설정
- 톰캣은 Window PC 에서 실행시켰다.

'WEB . WAS' 카테고리의 다른 글
[RockyLinux 8.9] apache + tomcat 로드밸런싱 (0) | 2024.11.29 |
---|---|
[JBOSS] 로컬 설치 (0) | 2024.04.12 |
[WAS] JSESSIONID (0) | 2023.11.06 |
[WebtoB] Method Not Allowed (0) | 2023.07.18 |
[JBOSS] Session Cluster 이슈 (0) | 2023.07.05 |