본문 바로가기

SERVER

[AIX] AIX6.1 기반의 Apache + tomcat + jk2

AIX6 기반 Apache+Tomcat+JK2 연동

AIX6 기반의 장비는 UNIX만 탑재되어서 도입되었다.

, 서버 설치와 연동에 필요한 모든 Module은 직접 설치할 필요가 있었다.

아래는 사전에 설치가 요구되는 모듈이다.

http://www.bullfreeware.com/

autoconf

automake

gcc

gcc-cplusplus

libgcc

libstdcplusplus

libstdcplusplus-devel

libtool

libxml2

libxml2-devel

m4

zlib

zlib-devel

apr

apr-util

청녹색에 해당하는 부분은 가장 먼저 설치해야 할 모듈일뿐더러 가장 중요한 모듈이기도 하다.

(rpm ivh gcc-4.6.1-AIX6.1.ppc.rpm)

필자의 경우 청녹색에 해당하는 모듈만 설치하여 구현하였다.

1. apache 설치

a. gzip d apache-2.2.22.tar.gz

b. tar xvf apache-2.2.22.tar

c. ./configure --prefix=/usr/local/httpd --enable-so --enable-proxy-ajp --enable-cgi --enable-rewrite --enable-speling --enable-usertrack --enable-deflate --enable-ssl --enable-cache --enable-disk-cache --enable-expires --enable-file-cache --enable-headers --enable-mem-cache --enable-mime-magic --enable-proxy --enable-mods-shared=all --with-mpm=worker

d. make && make install

2. tomcat 설치

a. gzip d tomcat7.tar.gz

b. tar xvf tomcat7.tar

c. mv tomcat7 /home/was/

3. Jakarta-connector

a. gzip d jakarta-connector.tar.gz

b. tar xvf jakarta-connector.tar

c. ./configure with-apxs=/home/was/apache2/bin/apxs

d. make && make install

4. httpd 설정

a. LoadModule jk_module modules/mod_jk.so

<IfModule jk_module>

JkWorkersFile conf/workers.properties

JkLogFile logs/mod_jk.log

JkLogLevel info

JkMountFile conf/uriworkermap.properties

</IfModule>

5. workers.properties 생성

a. worker.list=worker1

worker.worker1.port=8009

worker.worker1.host=localhost

worker.worker1.type=ajp13

worker.worker1.lbfactor=1

6. uriworkermap.properties 생성

a. /*.do=worker1

/*.jsp=worker1

아 ㅡ ㅡ 장비 도입시에 왜 저 모듈 탑재 안해줌 ?

진심 짜증남 ㅋㅋㅋㅋㅋㅋ