[
jeus@localhost config]$ cat ws_engine.m
*DOMAIN
jeuservice

*NODE
localhost   * 컨테이너 1
  WEBTOBDIR = "/usr/local/jeus5/webserver",
  SHMKEY    = 54000,
  DOCROOT   = "/home/free/webapps/WebContent",
  PORT      = "8080",
  LOGGING   = "log1",
  ERRORLOG  = "log2",
  JSVPORT   = 9900,
  IndexName = "index.do,index.html,index.jsp",
  HTH       = 1

*VHOST     * 컨테이너2 가상 호스트 추가
vhost1    
  DOCROOT   = "/home/free2/webapps/WebContent",  * 새로운 컨텍스트 경로
  PORT      = "8088",           * 사용할 포트 번호 지정(포트번호만 변경하여 다른 컨텍스트 사용)
  NODENAME  = "localhost",    * 상위에  정의한 NODE 명을 지정
  HOSTNAME  = "192.168.1.11",   * DNS 명(예: aaa.co.kr) 또는 localhost IP(IP로 외부 접속)
                                                * HOSTNAME에서 DNS 명을 설정시에 로컬의 hosts 파일에 dns 추가
  IndexName = "index.do,index.html,index.jsp",  * 컨테이너 기동시에 읽어들일 파일
  LOGGING   = "log3",    * 로그 정의
  ERRORLOG  = "log4"  


*SVRGROUP
htmlg       NODENAME = "localhost", SVRTYPE = HTML
cgig        NODENAME = "localhost", SVRTYPE = CGI
ssig        NODENAME = "localhost", SVRTYPE = SSI
jsvg        NODENAME = "localhost", SVRTYPE = JSV
jsvg1       NODENAME = "localhost", SVRTYPE = JSV, VHOSTNAME = vhost1  * 가상 호스트 추가

*SERVER
html        SVGNAME  = htmlg, MinProc = 1,  MaxProc = 2
cgi         SVGNAME  = cgig,  MinProc = 1,  MaxProc = 2
ssi         SVGNAME  = ssig,  MinProc = 1,  MaxProc = 2
MyGroup     SVGNAME  = jsvg,  MinProc = 5, MaxProc = 10
MyGroup2    SVGNAME  = jsvg1,  MinProc = 5, MaxProc = 10    * 추가된 컨테이너에서 사용하는 그룹

*URI
uri1        Uri      = "/cgi-bin/",  Svrtype = CGI
uri2        Uri      = "/free1/", Svrtype = JSV     * 컨테이너1 의 이름(JEUSMain.xml)
uri3        Uri      = "/free2/", Svrtype = JSV, VhostName=vhost1, SvrName = MyGroup2  * 컨테이너2의 이름(JEUSMain.xml)
uri4        Uri      = "/", Svrtype = JSV

*ALIAS
alias1      URI      = "/cgi-bin/", RealPath = "/usr/local/jeus5/webserver/cgi-bin/"

*LOGGING
log1        Format   = "DEFAULT",   FileName = "/home/free/webapps/logs/webserver/access.log", Option = "sync"
log2        Format   = "ERROR",     FileName = "/home/free/webapps/logs/webserver/error.log",  Option = "sync"
log3        Format   = "DEFAULT",   FileName = "/home/free2/webapps/logs/webserver/access.log", Option = "sync" * 로그파일 저장 경로
log4        Format   = "ERROR",     FileName = "/home/free2/webapps/logs/webserver/error.log",  Option = "sync"

*EXT
htm         MimeType = "text/html",  SvrType = HTML
do              Mimetype ="application/jsp",  Svrtype=JSV,  SvrName=MyGroup  * 사용 확장자 정의
jsf             Mimetype ="application/jsp",  Svrtype=JSV,  SvrName=MyGroup
jsp             Mimetype ="application/jsp",  Svrtype=JSV,  SvrName=MyGroup
html            MimeType = "text/html", SvrType = HTML
hwp             MimeType = "application/x-hwp", SvrType = HTML
pdf             MimeType = "application/x-pdf", SVRTYPE = HTML
css             MimeType = "text/css", SvrType = HTML
js              MimeType = "application/x-javascript", SvrType = HTML
gul             MimeType = "application/gul", SvrType = HTML
gif             MimeType = "image/gif", SvrType=HTML
jpeg            MimeType = "image/gif", SvrType=HTML
jpg             MimeType = "image/gif", SvrType=HTML
zip             MimeType = "application/zip", SvrType=HTML
jar             MimeType = "application/x-java-archive", SvrType=HTML
exe             MimeType = "application/octet-stream", SvrType=HTML
wml             MimeType = "application/vnd.wap.wml", SvrType=HTML
wmls            MimeType = "application/vnd.wap.wmlscript", SvrType=HTML
wmlc            MimeType = "application/vnd.wap.wmlc", SvrType=HTML
wmlsc           MimeType = "application/vnd.wap.wmlscript", SvrType=HTML
wbmp            MimeType = "application/vnd.wap.wbmp", SvrType=HTML
swf             MimeType = "application/x-shockwave-flash", SvrType=HTML
csv             MimeType = "application/octet-stream", SvrType=HTML
xml             MimeType = "text/html", SvrType = HTML
asd             MimeType = "application/astound",SvrType=HTML
asn             MimeType = "application/astound",SvrType=HTML
doc             MimeType = "application/msword",SvrType=HTML
wiz             MimeType = "application/msword",SvrType=HTML
rtf             MimeType = "application/msword",SvrType=HTML
xls             MimeType = "application/vnd.ms-excel",SvrType=HTML
xlw             MimeType = "application/vnd.ms-excel",SvrType=HTML
xla             MimeType = "application/vnd.ms-excel",SvrType=HTML
xlc             MimeType = "application/vnd.ms-excel",SvrType=HTML
xlm             MimeType = "application/vnd.ms-excel",SvrType=HTML
xlt             MimeType = "application/vnd.ms-excel",SvrType=HTML
ppt             MimeType = "application/vnd.ms-powerpoint",SvrType=HTML
pps             MimeType = "application/vnd.ms-powerpoint",SvrType=HTML
pot             MimeType = "application/vnd.ms-powerpoint",SvrType=HTML
m13             MimeType = "application/x-msmediaview",SvrType=HTML
m14             MimeType = "application/x-msmediaview",SvrType=HTML
wmf             MimeType = "application/x-msmetafile",SvrType=HTML
midi            MimeType = "audio/midi",SvrType=HTML
mid             MimeType = "audio/midi",SvrType=HTML
aif             MimeType = "audio/x-aiff",SvrType=HTML
aiff            MimeType = "audio/x-aiff",SvrType=HTML
aifc            MimeType = "audio/x-aiff",SvrType=HTML
wav             MimeType = "audio/x-wav",SvrType=HTML
cab             MimeType = "x-application/octet-stream", SvrType = HTML
fla             MimeType = "application/x-fla", SvrType=HTML

ws_engine.m 파일은 설정후 컴파일 과정을 함
[jeus@localhost localhost]$wscfl -i ws_engine.m

##############################################################################

[jeus@localhost localhost]$ cat JEUSMain.xml
<?xml version="1.0" encoding="utf-8"?>
<jeus-system xmlns="http://www.tmaxsoft.com/xml/ns/jeus">
    <node>
                <name>localhost</name>
        <engine-container>
<!-- 컨테이너 1 -->
            <name>container1</name>
            <command-option>-Xms256m -Xmx512m</command-option>
            <engine-command>
                <type>ws</type>
                <name>engine1</name>
            </engine-command>
            <engine-command>
                <type>servlet</type>
                <name>engine1</name>
            </engine-command>
            <sequential-start>true</sequential-start>
        </engine-container>
<!-- 컨테이너 2 -->
                <engine-container>
            <name>container2</name>
            <command-option>-Xms256m -Xmx512m</command-option>
            <engine-command>
                <type>servlet</type>
                <name>engine2</name>
            </engine-command>
            <sequential-start>true</sequential-start>
        </engine-container>

        <class-ftp>true</class-ftp>
        <sequential-start>true</sequential-start>
        <enable-webadmin>true</enable-webadmin>
    </node>
    <application>
        <!-- 노드 localhost 에서 사용할 컨테이너 이름(ws_engine.m)-->
        <name>free1</name> 
        <path>/home/free/webapps/WebContent</path>
        <deployment-type>COMPONENT</deployment-type>
        <deployment-target>
            <target>
                <engine-container-name>localhost_container1</engine-container-name>
                <web-context-group>
                    <name>MyGroup</name>
                </web-context-group>
            </target>
        </deployment-target>
        <web-component/>
    </application>
    <application>
        <!-- 가상호스트 vhost1 에서 사용할 컨테이너 이름(ws_engine.m)-->
        <name>free2</name>
        <path>/home/free2/webapps/WebContent</path> <!-- 추가할 컨텍스트 경로 -->
        <deployment-type>COMPONENT</deployment-type>
        <deployment-target>
            <target>
                <engine-container-name>localhost_container2</engine-container-name>
                <web-context-group>
                    <name>MyGroup2</name>
                </web-context-group>
            </target>
        </deployment-target>
        <web-component/>
    </application>
</jeus-system>


##############################################################################

기본으로 제우스에서 하나의 webtob 와 하나의 호스트명_ws_engine1 를 사용.
컨테이너 1 다음으로 추가되는 컨테이너는,
컨테이너 1에 설정된 호스트명_ws_engine1/WSMain.xml 에 설정부분을 추가하여 사용.

[jeus@localhost localhost_ws_engine1]$ cat WSMain.xml
<?xml version="1.0" encoding="UTF-8"?>
<ws-engine xmlns="http://www.tmaxsoft.com/xml/ns/jeus">
    <domain>
        <name>jeuservice</name>
<!-- 컨테이너 1에서 사용. -->
        <node>
            <name>localhost</name> 
            <webtob-dir>/usr/local/jeus5/webserver</webtob-dir>
            <shmkey>54000</shmkey>
            <docroot>/home/free/webapps/WebContent</docroot>
            <jsv-port>9900</jsv-port>
            <hth>1</hth>
            <port>8080</port>
            <logging>log1</logging>
            <error-log>log2</error-log>
        </node>

<!-- 추가된 컨테이너 설정은 아래 해당하는 엘리먼트 추가  -->
        <svrgroup>
            <name>htmlg</name>
            <svr-type>HTML</svr-type>
            <node-name>localhost</node-name>
        </svrgroup>
        <svrgroup>
            <name>cgig</name>
            <svr-type>CGI</svr-type>
            <node-name>localhost</node-name>
        </svrgroup>
        <svrgroup>
            <name>ssig</name>
            <svr-type>SSI</svr-type>
            <node-name>localhost</node-name>
        </svrgroup>
        <svrgroup>
            <name>jsvg</name>
            <svr-type>JSV</svr-type>
            <node-name>localhost</node-name>
        </svrgroup>
        <svrgroup>
            <name>jsvg2</name>
            <svr-type>JSV</svr-type>
            <node-name>localhost</node-name>
        </svrgroup>
        <server>
            <name>html</name>
            <svg-name>htmlg</svg-name>
            <min-proc>1</min-proc>
            <max-proc>2</max-proc> 
            <asq-count>1</asq-count>
        </server>
        <server>
            <name>cgi</name>
            <svg-name>cgig</svg-name>
            <min-proc>1</min-proc>
            <max-proc>2</max-proc>
        </server>
        <server>
            <name>ssi</name>
            <svg-name>ssig</svg-name>
            <min-proc>1</min-proc>
            <max-proc>2</max-proc>
        </server>
        <server>
            <name>MyGroup</name>
            <svg-name>jsvg</svg-name>
            <min-proc>5</min-proc>
            <max-proc>10</max-proc>
        </server>
        <server> <!-- 컨테이너 그룹 추가 (ws_engine.m)-->
            <name>MyGroup2</name>
            <svg-name>jsvg1</svg-name>
            <min-proc>5</min-proc>
            <max-proc>10</max-proc>
        </server>
        <uri>
            <name>uri1</name>
            <uri-def>/cgi-bin/</uri-def>
            <svr-type>CGI</svr-type>
        </uri>
        <uri>
            <name>uri2</name>
            <uri-def>/webapps</uri-def>
            <svr-type>JSV</svr-type>
        </uri>
        <uri>
            <name>uri3</name>
            <uri-def>/free2</uri-def>
            <svr-type>JSV</svr-type>
        </uri>
        <uri>
            <name>uri4</name>
            <uri-def>/</uri-def>
            <svr-type>JSV</svr-type>
        </uri>
        <logging>
            <name>log1</name>
            <format>DEFAULT</format>
            <file-name>/home/free/webapps/logs/webserver/access.log</file-name>
            <option>sync</option>
        </logging>
        <logging>
            <name>log2</name>
            <format>ERROR</format>
            <file-name>/home/free/webapps/logs/webserver/error.log</file-name>
            <option>sync</option>
        </logging>
        <logging>
            <name>log3</name>
            <format>DEFAULT</format> <!-- 추가할 컨텍스트의 로그 파일 저장 경로 (ws_engine.m) -->
            <file-name>/home/free2/webapps/logs/webserver/access.log</file-name>
            <option>sync</option>
        </logging>
        <logging>
            <name>log4</name>
            <format>ERROR</format>
            <file-name>/home/free2/webapps/logs/webserver/error.log</file-name>
            <option>sync</option>
        </logging>
        <ext>
            <name>htm</name>
            <mimetype>text/html</mimetype>
            <svr-type>HTML</svr-type>
        </ext>
        <ext>
            <name>jsp</name>
            <mimetype>application/jsp</mimetype>
            <svr-type>JSV</svr-type>
            <svr-name>MyGroup</svr-name>
        </ext>
    </domain>
</ws-engine>


##############################################################################


컨테이너 1에서 사용하는 호스트명_servlet_engine1

[jeus@localhost localhost_servlet_engine1]$ cat WEBMain.xml
<?xml version="1.0" encoding="UTF-8"?>
<web-container xmlns="http://www.tmaxsoft.com/xml/ns/jeus">
    <context-group>
        <group-name>MyGroup</group-name>
        <webserver-connection>
            <webtob-listener>
                <listener-id>webtob1</listener-id>
                <port>9900</port>
                <output-buffer-size>8192</output-buffer-size>
                <thread-pool>
                    <min>5</min>
                    <max>10</max>
                    <step>1</step>
                    <max-idle-time>30000</max-idle-time>
                </thread-pool>
                <webtob-address>127.0.0.1</webtob-address>
                <registration-id>MyGroup</registration-id>
            </webtob-listener>
        </webserver-connection>
        <print-error-to-browser>true</print-error-to-browser>
        <encoding>
            <request-encoding>
                <default>MS949</default>
                <forced>MS949</forced>
            </request-encoding>
            <response-encoding>
                <default>MS949</default>
                <forced>MS949</forced>
            </response-encoding>
            <postdata-encoding>
                <default>MS949</default>
                <forced>MS949</forced>
            </postdata-encoding>
        </encoding>
        <jsp-engine>
            <jsp-work-dir>/home/free/webapps/jspwork</jsp-work-dir>
        </jsp-engine>
        <logging>
            <access-log>
                <handler>
                    <file-handler>
                        <name>handler1</name>
                        <valid-day>1</valid-day>
                    </file-handler>
                </handler>
            </access-log>
        </logging>
    </context-group>
    <session-cluster>
        <session-routing>false</session-routing>
    </session-cluster>
</web-container>


##############################################################################

컨테이너 2에서 사용하는 호스트명_servlet_engine2
필요한 설정부분은 그룹명과 jsp 컴파일된 클래스가 저장될 경로 변경

[jeus@localhost localhost_servlet_engine2]$ cat WEBMain.xml
<?xml version="1.0" encoding="UTF-8"?>
<web-container xmlns="http://www.tmaxsoft.com/xml/ns/jeus">
    <context-group>
        <group-name>MyGroup2</group-name>
        <webserver-connection>
            <webtob-listener>
                <listener-id>webtob1</listener-id>
                <port>9900</port> <!-- 하나의 webtob 를 공유하기때문에 통신 포트 동일-->
                <output-buffer-size>8192</output-buffer-size>
                <thread-pool>
                    <min>5</min>
                    <max>10</max>
                    <step>1</step>
                    <max-idle-time>30000</max-idle-time>
                </thread-pool>
                <registration-id>MyGroup2</registration-id>
                <webtob-home>/usr/local/jeus5/webserver</webtob-home>
            </webtob-listener>
        </webserver-connection>
        <print-error-to-browser>true</print-error-to-browser>
        <encoding>
            <request-encoding>
                <default>MS949</default>
                <forced>MS949</forced>
            </request-encoding>
            <response-encoding>
                <default>MS949</default>
                <forced>MS949</forced>
            </response-encoding>
            <postdata-encoding>
                <default>MS949</default>
                <forced>MS949</forced>
            </postdata-encoding>
        </encoding>
        <jsp-engine>
            <jsp-work-dir>/home/free2/webapps/jspwork</jsp-work-dir>
        </jsp-engine>
        <logging>
            <access-log>
                <handler>
                    <file-handler>
                        <name>handler1</name>
                        <valid-day>1</valid-day>
                    </file-handler>
                </handler>
            </access-log>
        </logging>
    </context-group>
    <session-cluster>
        <session-routing>false</session-routing>
    </session-cluster>
</web-container>


# 적용후 오류 참고사항 : http://develop.sunshiny.co.kr/706

※ 위 내용은, 여러 자료를 참고하거나 제가 주관적으로 정리한 것입니다.
   잘못된 정보나 보완이 필요한 부분을, 댓글 또는 메일로 보내주시면 많은 도움이 되겠습니다.
02 20, 2009 11:05 02 20, 2009 11:05


Trackback URL : http://develop.sunshiny.co.kr/trackback/143

Leave a comment
[로그인][오픈아이디란?]
오픈아이디로만 댓글을 남길 수 있습니다

« Previous : 1 : ... 538 : 539 : 540 : 541 : 542 : 543 : 544 : 545 : 546 : ... 648 : Next »

Recent Posts

  1. HDFS - Python Encoding 오류 처리
  2. HP - Vertica ROS Container 관련 오류...
  3. HDFS - Hive 실행시 System Time 오류
  4. HP - Vertica 사용자 쿼리 이력 테이블...
  5. Client에서 HDFS 환경의 데이터 처리시...

Recent Comments

  1. 안녕하세요^^ 배그핵
  2. 안녕하세요^^ 도움이 되셨다니, 저... sunshiny
  3. 정말 큰 도움이 되었습니다.. 감사합... 사랑은
  4. 네, 안녕하세요. 댓글 남겨 주셔서... sunshiny
  5. 감사합니다 많은 도움 되었습니다!ㅎㅎ 프리시퀸스

Recent Trackbacks

  1. print & mail services print & mail services 13 07
  2. montana fishing vacations montana fishing vacations 13 07
  3. decks colorado decks colorado 13 07
  4. phoenix az closet organizers phoenix az closet organizers 13 07
  5. useful reference useful reference 13 07

Calendar

«   07 2020   »
      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  

Bookmarks

  1. 위키피디아
  2. MysqlKorea
  3. 오라클 클럽
  4. API - Java
  5. Apache Hadoop API
  6. Apache Software Foundation
  7. HDFS 생태계 솔루션
  8. DNSBL - Spam Database Lookup
  9. Ready System
  10. Solaris Freeware
  11. Linux-Site
  12. 윈디하나의 솔라나라

Site Stats

TOTAL 3006599 HIT
TODAY 40 HIT
YESTERDAY 1048 HIT