1. 미들웨어이야기/05. 상용미들웨어

Apache JEUS 연동

OSSW(Open Source System SoftWare 2009. 6. 5. 14:24

Apache JEUS 연동 방식은 Jserv mod_jk 이용하는 방식이 있습니다. FAQ 문서에서는 mod_jk2 이용하는 방식만 다룰 것입니다.

 

Apache 다운 로드

http://httpd.apache.org/download.cgi

에서 Unix Source: httpd-2.2.4.tar.gz 다운로드

Apache 설치

[jeus@chyeo apache]$ tar -zxvf httpd-2.2.4.tar.gz

………………………….

[jeus@chyeo apache]$ cd httpd-2.2.4

Apache DSO 모드로 설치 해야 합니다.

[jeus@chyeo httpd-2.2.4]$ ./configure --prefix=/home/jeus/apache --enable-rule=SHARED_CORE --enable-module=so

.......................

[jeus@chyeo httpd-2.2.4]$ make

.......................

[jeus@chyeo httpd-2.2.4]$ make install

mod_jk2 다운로드

http://tomcat.apache.org/download-connectors.cgi

에서 JK2 2.0.4 Source Release tar.gz 다운로드

mod_jk2 압축풀기 설정

[jeus@chyeo jk]$ tar -zxvf jakarta-tomcat-connectors-jk2-src-current.tar.gz

jk2 모듈 컴파일

[jeus@chyeo native2]$ cd jakarta-tomcat-connectors-jk2-2.0.4-src/jk/ native2

[jeus@chyeo native2]$ ./configure --with-apxs2=/usr/local/apache2/bin/apxs

[jeus@chyeo native2]$ make
[jeus@chyeo native2]$ cd ../build/jk2/apache2

[jeus@chyeo native2]$ /home/jeus/apache/bin/apxs –n jk2 -i mod_jk2.so

apache httd.conf 모듈추가

LoadModule jk2_module modules/mod_jk2.so

연동을 위한 apache 구성

파일생성 workers2.properties 내용 추가

[channel.socket:localhost:8009]

  port=8009

  host=127.0.0.1

 

  [ajp13:localhost:8009]

  channel=channel.socket:localhost:8009

 

  [uri:/*]

  worker=ajp13:localhost:8009

연동을 위한 JEUS WEBMain.xml구성

<ajp13-listener>

                <listener-id>apache-listener1</listener-id>

                <port>8009</port>

                <output-buffer-size>16384</output-buffer-size>

                <thread-pool>

                    <min>10</min>

                    <max>20</max>

                    <step>4</step>

                    <max-idle-time>60000</max-idle-time>

                    <max-wait-queue>2</max-wait-queue>

                    <max-queue>50</max-queue>

                 </thread-pool>

  </ajp13-listener>

Apache-JEUS 연동확인

[jeus@chyeo jeus]$ webadmin `hostname`_container1

Login name>administrator

Password>

-- Welcome to JEUS Web Container(vJEUS 5.0 (fix #18)) Admin --

$$0 [chyeo] >ti

** container [chyeo_container1] **

-- Thread State [apache-listener1] --

[apache-listener1-w00][waiting, wt=100034 ms]

[apache-listener1-w01][waiting, wt=99901 ms]

[apache-listener1-w02][waiting, wt=99901 ms]

[apache-listener1-w03][waiting, wt=99901 ms]

[apache-listener1-w04][waiting, wt=99902 ms]

[apache-listener1-w05][waiting, wt=99774 ms]

[apache-listener1-w06][waiting, wt=99774 ms]

[apache-listener1-w07][waiting, wt=99774 ms]

[apache-listener1-w08][waiting, wt=99774 ms]

[apache-listener1-w09][waiting, wt=99629 ms]

[total : 10    active : 0    idle : 10    blocked : 0    reconnecting : 0]

'1. 미들웨어이야기 > 05. 상용미들웨어' 카테고리의 다른 글

WebtoB CSR 생성  (0) 2009.06.05
WebtoB Vhost 설정  (0) 2009.06.05
WebtoB JEUS 연동  (0) 2009.06.05
JEUS Class Loader  (0) 2009.06.05
JEUS Startup class 등록  (0) 2009.06.05