티스토리 툴바

Jeus Startup / shutdown

* 구동 : jeus xml U[ID] P[password]

* 종료 시: jeusadmin [hostname] jeusexit –U[ID] –P[password]

 

 

Config/$hostname/JEUSMain.xml 수정 .

<?xml version="1.0"?>

<!DOCTYPE jeus-system PUBLIC "-//Tmax Soft, Inc.//DTD JEUS Main Config 4.0//EN"

                            "http://www.tmaxsoft.com/jeus/dtd/4.0/jeus-main-config.dtd">

<jeus-system>

    <node>

        <name>aix</name>

        <class-ftp>true</class-ftp>

        <sequential-start>true</sequential-start>

        <enable-webadmin>true</enable-webadmin>

        <system-log>

            <level>debug</level>

        </system-log>

        <engine-container>

            <name>container1</name>

            <command-option></command-option>

            <engine-command>

                <type>ws</type>

                <name>engine1</name>

                <startup-mode>xml</startup-mode>

                <deploy-mode>xml</deploy-mode>

            </engine-command>

            <engine-command>

                <type>servlet</type>

                <name>engine1</name>

                <startup-mode>xml</startup-mode>

            </engine-command>

            <engine-command>

                <type>ejb</type>

               <name>engine1</name>

                <startup-mode>xml</startup-mode>

                <deploy-mode>xml</deploy-mode>

            </engine-command>

            <tm-config>

                <pooling>

                    <min>10</min>

                    <max>20</max>

                    <step>2</step>

                    <period>600000</period>

                </pooling>

                <active-timeout>300000</active-timeout>

                <commit-timeout>120000</commit-timeout>

                <capacity>20000</capacity>

            </tm-config>

        </engine-container>

        <engine-container>

            <name>wlp30</name>

            <command-option>-DWLP_HOME=/data/premium/WLP3.0</command-option>

            <engine-command>

                <type>servlet</type>

                <name>wlp30</name>

                <startup-mode>xml</startup-mode>

            </engine-command>

            <tm-config>

                <pooling>

                    <min>10</min>

                    <max>20</max>

                    <step>2</step>

                    <period>600000</period>

                </pooling>

                <active-timeout>300000</active-timeout>

                <commit-timeout>120000</commit-timeout>

                <capacity>20000</capacity>

            </tm-config>

        </engine-container>

    </node>

</jeus-system>

 

설정 디렉토리 추가.

$jeushome/config> cp rf hostname_servlet_engine1 hostname_servlet_wlp30

$jeushome/config> cd hostname_servlet_wlp30

$jeushome/config/hostname_servlet_wlp30>mv jeus-web-dd_examples.xml jeus-web-dd-servlet.xml

 

Config/hostname_servlet_wlp30/jeus-web-dd.servlet.xml 수정

<?xml version="1.0"?>

<!DOCTYPE jeus-web-dd PUBLIC "-//Tmax Soft., Inc.//DTD JEUS WEB Deployment Info 4.0//EN"

                            "http://www.tmaxsoft.com/jeus/dtd/4.0/jeus-web-dd.dtd">

<jeus-web-dd>

    <context>

        <context-name>/servlet</context-name>

        <docbase>/data/tomcat/webapps/servlet</docbase>

        <auto-reload>

            <enable-reload>true</enable-reload>

            <check-on-demand>true</check-on-demand>

        </auto-reload>

    </context>

</jeus-web-dd>

 

Config/hostname_servlet_wlp30/WEBMain.xml 수정

<?xml version="1.0"?>

<!DOCTYPE web-container PUBLIC "-//Tmax Soft., Inc.//DTD WEB Main Config 4.0//EN"

                              "http://www.tmaxsoft.com/jeus/dtd/4.0/web-main-config.dtd">

<web-container>

    <context-group>

       <group-name>MyGroup</group-name>

        <group-docbase>webapps</group-docbase>

<encoding>

          <request-encoding>

                <default>UTF-8</default>

                <forced>UTF-8</forced>

          </request-encoding>

 

          <postdata-encoding>

                <default>UTF-8</default>

                <forced>UTF-8</forced>

          </postdata-encoding>

 

          <response-encoding>

                <default>UTF-8</default>

                <forced>UTF-8</forced>

          </response-encoding>

        </encoding>

        <session-config>

            <timeout>20</timeout>

            <shared>true</shared>

        </session-config>

        <logging>

            <error-log>

               <target>stdout</target>

                <level>information</level>

                <buffer-size>0</buffer-size>

                <valid-day>1</valid-day>

            </error-log>

            <user-log>

                <target>file</target>

                <buffer-size>0</buffer-size>

                <valid-day>1</valid-day>

            </user-log>

            <access-log>

                <target>file</target>

                <buffer-size>0</buffer-size>

                <valid-day>1</valid-day>

                <log-format>

                    <time-format>default</time-format>

                </log-format>

            </access-log>

        </logging>

        <context>

            <context-name>servlet</context-name>

            <context-path>/servlet</context-path>

        </context>

        <webserver-connection>

            <http-listener>

                <listener-id>http1</listener-id>

                <port>9100</port>

                <output-buffer-size>8192</output-buffer-size>

               <thread-pool>

                    <min>25</min>

                    <max>30</max>

                    <step>2</step>

                    <max-idle-time>1000</max-idle-time>

                </thread-pool>

            </http-listener>

<webtob-listener>

                <listener-id>webtob1</listener-id>

                <port>9900</port> // 웹투비에서 내부적으로 연결할 아이피.

                <hth-count>1</hth-count>

                <webtob-address>127.0.0.1</webtob-address> // 웹투비 서버 아이피.

                <registration-id>MyGroup</registration-id>

                <thread-pool>

                    <min>4</min> // 웹투비에서 설정한 값과 동일해야합니다.

                    <max>10</max> // 웹투비에서 설정한 값과 동일해야합니다.

                    <step>2</step>

                   <max-idle-time>30000</max-idle-time>

                    <max-wait-queue>4</max-wait-queue>

                </thread-pool>

            </webtob-listener>

        </webserver-connection>

    </context-group>

</web-container>

 

Jeus서버 리스타트.

$>${JEUS_HOME}/bin/jeusadmin hostname

[ErrorMsgManager] Message Manager is initialized

[JeusCommander] Login

>administrator

[JeusCommander] Password

> 

[JeusCommander] JEUS 4.2 Jeus Manager Controller

aix>down

Do you really want to down whole JEUS? (y : n):y

[JeusCommander] aix down successful

aix>boot

 

확인

http://hostname:9100/servlet/loadFile?console/download_ocx.html

 

webtob 연동.

 

$Webtobhome/Config/servlet.m  수정

*DOMAIN

webtob1

 

*NODE

aix     WEBTOBDIR="/data/premium/webtob",

                SHMKEY = 54000,

                DOCROOT="/data/html", // htmldir

                PORT = 8080, // 웹포트

JSVPort = 9900, // jeus와 통신할 포트. 제우스 webmain.xml 에 있는 webtob listener 포트와 동일해야한다.

                HTH = 1,

                LOGGING = log1,

                ERRORLOG = log2

 

*SVRGROUP

htmlg           NODENAME = aix, SVRTYPE = HTML

cgig           NODENAME = aix, SVRTYPE = CGI

ssig           NODENAME = aix, SVRTYPE = SSI

 

*SERVER

html           SVGNAME = htmlg, MinProc = 2, MaxProc = 10

cgi             SVGNAME = cgig, MinProc = 4, MaxProc = 10

ssi             SVGNAME = ssig, MinProc = 2, MaxProc = 10

MyGroup         SVGNAME = jsvg, MinProc = 4, MaxProc = 10 // thread max / min 개수. JeusMain.xml 에설정된 proc 개수와 동일해야한다.

 

 

*URI

uri1           URI = "/servlet/", SVRTYPE = JSV, SVRNAME = MyGroup

 

*ALIAS

alias1         URI = /cgi-bin/, RealPath = /data/premium/webtob/cgi-bin/

 

*LOGGING

log1           Format = DEFAULT, FileName = /data/premium/webtob/log/access.log

log2           Format = ERROR, FileName = /data/premium/webtob/log/error.log

 

*EXT

htm             MimeType = text/html, SvrType = HTML

 

config 파일 바이너리로 컴파일

#$webtobhome/config>../bin/wscfl i wlp30servlet.m

Config 디렉토리에 wsconfig 파일이 생성된다.

 

Webtob 서버 startup

#$webtobhome/bin/wsboot

 

연동 확인

http://hostname:8080/

 «이전 1 ... 189 190 191 192 193 194 195 196 197 ... 314  다음»