1. tomcat
2. mod_jk
1. tomcat 설치.
- version : apache-tomcat-6.0.20
- 위치 : /usr/local/tomcat
- 다운로드
# wget http://apache.tt.co.kr/tomcat/tomcat-6/v6.0.20/bin/apache-tomcat-6.0.20.tar.gz
# tar -zxvf apach-tomcat-6.0.20.tar.gz
# mv apache-tomcat-6.0.20 tomcat-6.0.20
# mv tomcat-6.0.20 /usr/local/
# ln -s /usr/local/tomcat-6.0.20 /usr/local/tomcat
2. tomcat connecter
- version : jk-1.2.28
- 다운로드
# wget http://www.apache.org/dist/tomcat/tomcat-connectors/jk/binaries/linux/jk-1.2.28/i586/mod_jk-1.2.28-httpd-2.2.X.so
# mv mod_jk-1.2.28-httpd-2.2.x.so /usr/local/apache/modules/mod_jk.so
- workers.properties 생성.
# vi /usr/local/tomcat/conf/workers.properties
------------------------------------------------------------------
worker.list=ajp12, ajp13
worker.ajp12.port=8007
worker.ajp12.host=localhost
worker.ajp12.type=ajp12
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
------------------------------------------------------------------
- httpd.conf 수정.
# vi /usr/local/apache/conf/httpd.conf
------------------------------------------------------------------
Include conf/extra/mod_jk.conf
------------------------------------------------------------------
# vi /usr/local/apache/conf/extra/mod_jk.conf
------------------------------------------------------------------
<IfModule !mod_jk.c>
LoadModule jk_module modules/mod_jk.so
</IfModule>
<IfModule mod_jk.c>
JkWorkersFile /usr/local/tomcat/conf/workers.properties
JkLogFile /usr/local/tomcat/logs/mod_jk.log
JkLogLevel info
JkMount /*.jsp ajp13
JkMount /*.do ajp13
JkMount /examples/* ajp13
JkMount /jsp/* ajp13
JkMount /servlets/* ajp13
</IfModule>
------------------------------------------------------------------
3. 설정 확인.
http://localhost/index.jsp
http://localhost:8080/
설정 확인 및 외부 접속 테스트 하기..