제11장 따라하기

다음의 단계를 따라하면 JEUS를 간단하게 체험할 수 있다. 다음의 예에서는 JEUS의 서버명이 "server1"이라고 가정한다. 사용자는 이 서버명을 JEUS가 설치된 머신의 이름으로 변경해야 한다.

  1. 시스템에 JEUS가 제대로 설치되었는지 여부와 경로 및 시스템 변수들이 적절히 설정되어 있는지 확인한다(특히, 시스템 경로에 "JEUS_HOME/bin/" 디렉터리가 포함되어 있는지 확인한다).

  2. MS(Managed Server) 내의 웹 엔진(서블릿 엔진)에 적어도 1개의 웹 커넥션이 설정되어 있어야 한다. 웹 커넥션 설정은 “제2장 웹 커넥션 관리”를 참고한다.

    간단하게 “2.3.3. HTTP 리스너 설정”에서와 같이 포트가 '8088'로 설정된 동일한 HTTP 리스너를 추가하여 간단하게 실행해 볼 수 있다.

  3. 설정이 완료되면 콘솔 화면을 실행하고 다음과 같이 명령을 입력하면 JEUS Launcher가 실행된다. 여기서 -u와 -p는 JEUS를 설치할 때 설정한 관리자 이름과 패스워드를 의미한다.

    아래 예제에서는 관리자 이름과 패스워드를 'jeus'로 설정했다고 가정한다.

    startMasterServer -domain domain1 -server server1 -u jeus -p jeus

  4. 다른 콘솔 화면을 열고, 이번에는 'jeusadmin -u jeus -p jeus' 명령을 실행한다(여기서 -u, -p를 입력하지 않았다면 다시 한 번 'login -u jeus -p jeus'을 입력하여 로그인 할 수 있다).

    $ jeusadmin
    JEUS 21 Administration Tool
    To view help, use the 'help' command.
    offline>login -u jeus -p jeus
    Attempting to connect to 127.0.0.1:9736.
    The connection has been established to JEUS Master Server [adminServer] in the domain [domain1].
    [MASTER]domain1.adminServer>

  5. 다음과 같이 명령을 실행하면 웹 엔진을 모니터링하고 제어할 수 있는 명령어들의 목록이 출력된다.

    [MASTER]domain1.adminServer>help -g Web
    [ Web]______________________________________________________________________
      add-ajp-listener                 Add AJP listener.
      add-backup-webtob                Add backup WebtoB server.
      add-http-listener                Add HTTP listener.
      add-response-header              Add an HTTP response custom header.
      add-tcp-listener                 Add TCP listener.
      add-tmax-connector               Add Tmax Connector.
      add-valve                        add a new valve configuration.
      add-virtual-host                 Add virtual host.
      add-web-cookie-policy            Add the cookie policy configuration.
      add-web-encoding                 Add web engine characterset encoding.
      add-web-properties               Add web engine properties.
      add-webtob-connector             Add the WebtoB Connector.
      clear-web-statistics             Resets the web engine statistics.
      list-session                     Show session list sorted by idle time.
      modify-jsp-engine                Modify JSP engine configurations.
      modify-response-header           Modify the HTTP response custom header.
      modify-session-configuration     Modifies the session configuration.
      modify-tmax-connector            Modify the thread pool number of the
                                       tmax-connector.
      modify-virtual-host              Modify the access log format of a virtual
                                       host dynamically. The access log must be 
                                       enabled.
      modify-web-cookie-policy         Modify the cookie policy configuration.
      modify-web-encoding              Modify the web engine characterset
                                       encoding configurations.
      modify-web-engine-configuration  Modify some parts of the web engine
                                       configuration dynamically.
      modify-web-listener              Modify the thread pool number of the web
                                       listener (http-listener, tcp-listener, 
                                       orajp13-listener).
      modify-web-properties            Modify web engine properties.
      modify-webtob-connector          Modify the thread pool number of the
                                       webtob-connector.
      notify-auto-scale                Notify completed.
      reload-web-context               Forcibly reloads the servlet context.
      remove-backup-webtob             Remove backup WebtoB server.
      remove-response-header           Remove the HTTP response custom header.
      remove-session                   Remove time exceeded session.
      remove-tmax-connector            Remove the tmax-connector.
      remove-valve                     Remove the valve configuration.
      remove-valve-property            Remove the property of the valve.
      remove-virtual-host              Remove virtual host.
      remove-web-cookie-policy         Remove the HTTP cookie policy
                                       configuration.
      remove-web-encoding              Remove the web engine characterset
                                       encoding configurations.
      remove-web-listener              Remove a web listener (http-listener,
                                       tcp-listener, or ajp13-listener).
      remove-web-properties            Remove web engine properties.
      remove-webtob-connector          Remove webtob-connector.
      resume-web-component             Temporarily resumes the given component
                                       (servlet element of context or given 
                                       web-connection name).
      set-valve-property               Set property of the valve. If the
                                       corresponding key does not exist, a 
                                       key=value pair is added to the valve.
      show-request-processing-flow     Shows the request processing flow of
                                       mapped URL patterns and the specified 
                                       host name.
      show-session-configuration       Shows the session configuration.
      show-session-server-backup-table Shows the session server backup table
      show-web-engine-configuration    Show web engine configurations, including
                                       the monitoring period and access-logs.
      show-web-statistics              Shows the web engine statistics.
      suspend-web-component            Temporarily suspends the servlet.
      precompile-jsp                   Precompile JSP files for a deployed web
                                       module. Connect to JEUS Master Server or 
                                       a server.
    
    To show detailed information for a command, use 'help [COMMAND_NAME]'.
    ex) help connect

  6. 웹 엔진 제어 명령어나 모니터링 명령어를 수행한다. 웹 엔진 명령어는 JEUS Reference 안내서”의 “4.2.8. 웹 엔진 관련 명령어”를 참고한다.

  7. WebAdmin에서도 위와 동일한 작업을 수행할 수 있다. WebAdmin에서의 수행 방법에 대한 자세한 내용은 JEUS 21을 참고한다.

위의 과정에서 문제가 발생했다면 JEUS 환경 설정을 확인하고 올바르게 재설정해야 한다. 문제점의 원인을 좀 더 자세히 알아보려면 JEUS 관리자 콘솔 윈도우 로그에 남겨진 정보를 참고하는 것도 좋은 방법이다.

참고

JEUS 환경설정에 대한 자세한 내용은 "JEUS 설치 및 시작하기""JEUS Server 안내서"를 참고한다.