티스토리 뷰

tomcat-connectors-*-src.tar.gz 직접 다운로드

https://archive.apache.org/dist/tomcat/tomcat-connectors/jk/


장비에서 *버전 직접 다운로드

wget https://archive.apache.org/dist/tomcat/tomcat-connectors/jk/tomcat-connectors-*-src.tar.gz




/sw 경로에 connectors-1.2.43, apache가 설치되는 기준

cd /sw

wget https://archive.apache.org/dist/tomcat/tomcat-connectors/jk/tomcat-connectors-1.2.43-src.tar.gz

tar zxvf tomcat-connectors-1.2.43-src.tar.gz

cd tomcat-connectors-1.2.43-src/native

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

make 

make install

cp /etc/httpd/modules/mod_jk.so /sw/apache/modules/




vi /sw/apache/conf/httpd.conf

LoadModule jk_module modules/mod_jk.so


<IfModule mod_jk.c> 

JkWorkersFile /sw/apache/conf/workers.properties

JkLogFile /sw/apache/logs/mod_jk.log

JkLogLevel info

JkLogStampFormat "[%a %b %d %H:%M:%S %Y]

JkShmFile /sw/apache/logs/mod_jk.shm

JkMount /* loadbalancer

</IfModule>




vi /sw/apache/conf/workers.properties

worker.list=loadbalancer

worker.loadbalancer.type=lb

worker.loadbalancer.balanced_workers=was1, was2

#worker.loadbalancer.sticky_session=1


worker.was1.port=톰캣 1번의 ajp포트

worker.was1.host=톰캣 1번의 IP

worker.was1.type=ajp13

worker.was1.lbfactor=1


worker.was2.port=톰캣 2번의 ajp포트

worker.was2.host=톰캣 2번의 IP

worker.was2.type=ajp13

worker.was2.lbfactor=1


댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
more
«   2024/12   »
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31
글 보관함