서버 설치 및 제거

본 장에서는 AnyLink 서버를 설치하고 제거하는 방법에 대해서 설명한다.

1. 설치

Unix/Linux 환경에서 제품을 설치하기 위해서 Console Installer를 실행해야 한다. Console Installer는 설치 과정에서 값을 입력받을 때 기본값을 제시한다. 셸은 이전 단계로 돌아가는 것이 기본적으로 불가능하므로 설치가 완료된 후에 값을 변경한다.

다음은 Unix/Linux 환경에서 AnyLink를 설치하는 과정에 대한 설명이다.

  1. AnyLink 설치 파일(AnyLink_unix_ko.bin)을 서버에 업로드하고 파일이 위치한 디렉터리로 이동한다.

  2. 설치 파일이 실행 가능하도록 파일의 실행 권한을 다음과 같이 부여한다.

    chmod u+x AnyLink_unix_ko.bin
  3. 콘솔에서 설치 파일명을 입력한 후 <ENTER> 키를 누른다.

    anylink@node:~$ ./AnyLink_unix_ko.bin
    Preparing to install...
    Extracting the installation resources from the installer archive...
    Configuring the installer for this system's environment...
    strings: '/lib/libc.so.6': No such file
    
    Launching installer...
    
    Preparing CONSOLE Mode Installation...
    
    ===============================================================================
    AnyLink                        (created with InstallAnywhere by Macrovision)
    -------------------------------------------------------------------------------
  4. 인스톨러에 대한 간략한 소개 화면이 나타난다. 다음 과정을 수행하기 위해 <ENTER> 키를 누른다.

    ===============================================================================
    Introduction
    ------------
    
    InstallAnywhere will guide you through the installation of AnyLink.
    
    It is strongly recommended that you quit all programs before continuing with
    this installation.
    
    Respond to each prompt to proceed to the next step in the installation. If you
    want to change something on a previous step, type 'back'.
    
    You may cancel this installation at any time by typing 'quit'.
    
    PRESS <ENTER> TO CONTINUE:
  5. 라이선스 준수 화면이 나타난다.

    ===============================================================================
    License Agreement
    -----------------
    
    Installation and Use of AnyLink Requires Acceptance of the Following License
    Agreement:
    
    
    AnyLink
    This Software is made by 'TmaxSoft Co.,Ltd.' and this software is distributed
    under our license agreement.
    
    Software End-User License Agreement
    
    Product : AnyLink
    This is a legal agreement between you (either an individual or an entity) and
    TmaxSoft,Incorporated.
    By opening the  sealed software package and/or by using the software, you agree
    to be bound by the terms of this agreement.
    
    AnyLink Software License
    
    1.  Grant of License:  This AnyLink Software License Agreement ("License")
    permits you to use one copy of the TmaxSoftware product Tmax, on any single
    computer, provided the software is in use on only one computer at any one time.
    If this package is a license pack, you may make and use additional copies of the
    software up to the number of licensed copies authorized.  If you have multiple
    licenses for the software, then at any time you may have as many copies of the
    software in use as you have licenses.
    The software is "in use" on a computer when it is loaded into the temporary
    
    PRESS <ENTER> TO CONTINUE:
  6. 라이선스 준수에 대한 다음 정보를 보기 위해 <ENTER> 키를 누른다.

    memory (i.e., RAM) or installed into the permanent memory (e.g., hard disk,
    CD-ROM,or other storage device) of that computer, except that a copy installed
    on a network server for the sole purpose of distribution to other computers is
    not "in use". If the anticipated number of users of the software will exceed the
    number of applicable licenses, then you must have a reasonable mechanism or
    process in place to ensure that the number of persons using the software
    concurrently does not exceed the number of licenses.
    
    2.  Copyright:  The software (including any images, applets, photographs,
    animations, video, audio, music and text  incorporated into the software) is
    owned by TmaxSoft or its suppliers and international treaty provisions.
    Therefore, you must treat the software like any other copyrighted material
    (e.g., a book or musical recording) except that you may either (a) make one copy
    of the software solely for backup or archival purposes, or (b) transfer the
    software to a single hard disk provided you keep the original solely for
    backup or archival purposes.  You may not copy the printed materials
    accompanying the software, nor print copies of any user documentation provided
    in "online"or electronic form.
    
    3.  Other restrictions:  This license is your proof of license to exercise the
    rights granted herein and must be retained by you.
    You may not rent or lease the software, but you may transfer your rights under
    
    PRESS <ENTER> TO CONTINUE:
  7. 라이선스 동의 여부를 결정한다.

    동의를 하면 'y’를 입력한 후 <ENTER> 키를 누르고, 아니면 'n’을 입력한 후 <ENTER> 키를 누른다.

    this license on a permanent basis provided you transfer this license, the
    software, and all accompanying printed materials, retain no copies, and the
    recipient agrees to the terms of this license.  You may not reverse engineer,
    decompile, or disassemble the software, except to the extent that the
    foregoingrestriction is expressly prohibited by applicable law.
    
    TmaxSoft Co., Ltd.
    
    
    
    
    DO YOU ACCEPT THE TERMS OF THIS LICENSE AGREEMENT? (Y/N): y
  8. 플랫폼 목록 중 설치할 플랫폼을 선택해서 번호를 입력한다.

    기본적으로 제공되는 값을 사용하려면 <ENTER> 키를 누르고 기본값이 맞지 않을 경우에는 해당하는 번호를 입력한다.

    ===============================================================================
    Choose Platform
    ---------------
    
    Choose the operating system and architecture :
    1)HP-UX PA-RISC
    2)HP-UX Itanium
    3)Solaris UltraSPARC
    4)Solaris x86
    5)Solaris x64
    6)AIX 5.x, 6.x, 7.x PowerPC
    7)Linux Itanium
    8)Linux x86
    9)Linux x64
    10)Linux PowerPC 64
    Quit) Quit Installer
    
    Choose Current System (DEFAULT: 9):
  9. 설치 디렉터리를 선택한다.

    기본적으로 제공되는 값을 사용하려면 <ENTER> 키를 누르고, 디렉터리 변경을 원하면 설치 경로를 입력한다.

    ===============================================================================
    Installation Folder
    -------------------
    
    Enter the installation folder.
    
      Default Install Folder: /home/anylink/jeus7
    
    ENTER AN ABSOLUTE PATH, OR PRESS <ENTER> TO ACCEPT THE DEFAULT
          :
  10. Installation Mode를 선택한다. 기본적으로는 Production Mode가 설정된다.

    ===============================================================================
    Installation Mode
    -----------------
    
    * Production Mode
    - Disables JEUS Hot Swap.
    - Disables Automatic Reloading.
    - Displays a warning message and recommends using a full license if a demo
    license is used.
    
    * Development Mode
    - Enables JEUS Hot Swap.
    - Enables Automatic Reloading.
    
      ->1- Production Mode
        2- Development Mode
        3- Cancel
    
    ENTER THE NUMBER OF THE DESIRED CHOICE, OR PRESS <ENTER> TO ACCEPT THE
       DEFAULT:
  11. JDK의 위치를 입력한다. <ENTER> 키를 누르면 자동으로 인식한 JDK의 위치를 사용한다. 디렉터리를 변경하려면 설치 경로를 입력한다.

    ===============================================================================
    Enter the JDK path.
    -------------------
    
    Enter the JDK path:
    
    Enter the JDK path (DEFAULT: /home/anylink/jdk1.7.0_79):
  12. JEUS 관리자의 패스워드를 입력한다. 입력한 패스워드는 "administrator" ID로 할당된다. 설정한 패스워드는 JEUS를 기동하는데 필요한 정보이므로 주의깊게 입력해야 한다.

    ===============================================================================
    Password Input
    --------------
    
    Enter the Password for the administrator account.
    
    Input Password::
    
    Corfirm Password::
  13. Domain Admin Server에 사용할 도메인 이름을 입력한다.

    ===============================================================================
    User Domain name
    ----------------
    
    Enter the Domain name
    
    Enter the domain name (DEFAULT: AnyLink_domain):
  14. AnyLink 서버가 설치되는 LocalHost의 IP 값을 입력한다.

    ===============================================================================
    Get User LocalHost IP
    ---------------------
    
    
    
    IP (DEFAULT: 127.0.1.1):
  15. DIS 포트(Port) 정보를 입력한다. 기본값으로 7127 포트가 설정된다.

    ===============================================================================
    Get User Variable
    -----------------
    
    
    
    DIS Port (DEFAULT: 7127):
  16. AnyLink 서버가 사용하는 Repository DB의 Type을 선택한다(현재 Installer에서 지원가능한 Type은 Oracle, Tibero이다).

    ===============================================================================
    Choose DBMS type
    ----------------
    
    
    
      ->1- Tibero
        2- Oracle
    
    ENTER THE NUMBER FOR YOUR CHOICE, OR PRESS <ENTER> TO ACCEPT THE DEFAULT:
       :
  17. 다음은 Repository DB의 Type을 Tibero로 선택한 경우이다. AnyLink 서버가 사용하는 Repository DB의 접속정보를 입력한다.

    ===============================================================================
    Get Tibero JDBC Source
    ----------------------
    
    Enter requested information
    
    Tibero DB NAME (DEFAULT: tibero):
    
    Tibero Port (DEFAULT: 8629):
    
    Tibero DB Server IP (DEFAULT: 127.0.1.1):
    
    Tibero User ID (DEFAULT: anylink):
    
    Tibero PassWord (DEFAULT: anylink):
  18. 이미 생성되어 있는 Repository DB가 있을 경우 삭제할지 여부를 결정한다.

    ===============================================================================
    Drop Table
    ----------
    
    Do you want to delete the existing database schema?
    
      ->1- YES
        2- NO
    
    ENTER THE NUMBER OF THE DESIRED CHOICE, OR PRESS <ENTER> TO ACCEPT THE
       DEFAULT:
  19. 설치 중에 Repository DB에 테이블을 생성할것인지 여부를 결정한다. 기본값은 '1 - YES' 이다.

    ===============================================================================
    Create Table
    ------------
    
    Do you want to create a new database schema?
    
      ->1- YES
        2- NO
    
    ENTER THE NUMBER OF THE DESIRED CHOICE, OR PRESS <ENTER> TO ACCEPT THE
       DEFAULT:
  20. 설치에 관련한 요약정보를 조회한다. 각 항목을 확인하고 <ENTER> 키를 누르면 설치가 진행된다.

    ===============================================================================
    Pre-Installation Summary
    ------------------------
    
    Review the Following Before Continuing:
    
    Product Name:
        AnyLink
    
    Install Folder:
        /home/anylink/jeus7
    
    Link Folder:
        /home/anylink
    
    Install Set
        Domain Admin Server
    
    Disk Space Information (for Installation Target):
        Required:  821,169,125 bytes
        Available: 916,542,095,360 bytes
    
    PRESS <ENTER> TO CONTINUE:
  21. 진행 바와 함께 설치가 진행된다.

    ===============================================================================
    Installing...
    -------------
    
     [==================|==================|==================|==================]
     [------------------|------------------|------------------|------------------]
  22. 설치가 완료되면 설치 결과를 조회할 수 있다.

    ===============================================================================
    CHECK RUN SQL
    -------------
    
    DB TABLE CREATE SUCCESS!!
    
    PRESS <ENTER> TO CONTINUE:
    
    
    ===============================================================================
    Installation Complete
    ---------------------
    
    AnyLink has been successfully installed to:
    
         /home/anylink/jeus7
    
    PRESS <ENTER> TO EXIT THE INSTALLER:
  23. 설치 완료 후 아래의 경로에 Repository DB 사용을 위한 JDBC Driver를 업로드한다.

    해당 JDBC Driver는 제품에서 제공되지 않는다. (각 벤더사(Oracle, Tibero)에서 제공)

    $AnyLink_HOME/jeus7/lib/datasource

2. 설치 확인

본 절에서는 설치가 완료된 후 설치된 정보를 확인하고 서버를 기동하는 방법에 대해서 설명한다.

2.1. 디렉터리 구조

AnyLink 서버가 설치되면 다음과 같은 디렉터리가 생성된다.

$AnyLink_HOME/jeus7
   +---- bin
   +---- db_scripts
   +---- dis_config
   +---- domains
   +---- anyLink-licenses
   |----lib
         +----anylink
         +----client
         +----datasource
         +----endorsed
         +----etc
         +----jext
         +----licenses
         +----schemas
         +----shared
         +----system
         +----systemapps
         +----thirdparty
   +---- license
   |---- logs
           +---- AnyLink
   +---- nodemanager
   +---- server
bin

서버의 시작 및 종료 스크립트인 startDomainAdminServer, startManagedServer, stopServer와 JEUS 콘솔 툴(jeusadmin)과 같은 실행 파일들이 위치한다.

db_scripts

AnyLink를 사용하기 위한 DB 스크립트 파일이 위치한다.

dis_config

dis-config.xml 파일이 위치한 곳으로 DIS 서버의 환경정보가 위치한다.

domains

하위에 도메인별로 DOMAIN_HOME과 JEUS_HOME에서 사용하는 노드 정보가 포함된 nodes.xml이 존재한다.

anyLink-licenses

AnyLink에서 사용하는 오픈 소스들에 대한 라이선스 파일이 위치한다.

lib

JEUS가 기동하는 데 필요한 라이브러리가 존재한다. shared 디렉터리를 제외한 나머지 디렉터리들은 사용자가 접근할 필요가 없다.

license

JEUS 라이선스 파일이 위치한다. 라이선스 파일은 JEUS가 실행되기 위해서 반드시 필요한 파일이다.

logs

AnyLink 로그 파일들이 위치한다.

nodemanager

JEUS 노드 매니저를 위한 설정 파일인 jeusnm.properties 파일이 위치한다.

server

DIS 서버에서 사용되는 파일들이 위치한다.

2.2. 서버 기동

모든 설치가 정상적으로 수행되었다면 다음과 같이 AnyLink 서버를 기동시킨다.

  • 데이터 통합서버(DIS) 기동

    JEUS 서버의 DAS 서버를 기동하는 것과 동일하게 DIS 서버를 기동한다.

    $startDomainAdminServer -domain <domain_name> -u administrator -p <password>

    예)

    $startDomainAdminServer -domain AnyLink_domain -u administrator -p jeusadmin
  • 런타임 엔진(RTE) 기동

    JEUS 서버의 MS 서버를 기동하는 것과 동일하게 RET 서버를 기동한다.

    $startManagedServer -domain <domain_name> -server <server_name> -u administrator -p <password>

    예)

    $startManagedServer -domain AnyLink_domain -server server1 -u administrator -p jeusadmin

3. 제거

다음은 콘솔 모드에서 AnyLink를 삭제하는 과정에 대한 설명이다.

  1. AnyLink가 설치된 경로에서 $AnyLink_HOME/UninstallerData/Uninstall을 실행한다.

    [anylink@node UninstallerData]$./Uninstall
  2. 삭제과정이 진행되고, 제거가 완료되면 결과가 표시된다.

    Preparing CONSOLE Mode Installation...
    
    ===============================================================================
    AnyLink                        (created with InstallAnywhere by Macrovision)
    -------------------------------------------------------------------------------
    
    
    
    
    ===============================================================================
    Uninstall AnyLink
    --------------------
    
    About to uninstall...
    
    AnyLink
    
    This will remove features installed by InstallAnywhere.  It will not remove
    files and folders created after the installation.
    
    PRESS <ENTER> TO CONTINUE:
    
    
    
    ===============================================================================
    Uninstalling...
    ---------------
    
    
    ...*
    *
    *************************
    *************************
    *************************
    ************************
    ...*
    *
    *************************
    *************************
    *************************
    ************************
    ...*
    *
    *************************
    *************************
    *************************
    ************************
    ...*
    *
    *************************
    *************************
    *************************
    ************************
    ...*
    *
    *************************
    *************************
    *************************
    *************************
    
    
    
    ===============================================================================
    Uninstallation Complete
    -----------------------
    
    All items were successfully uninstalled.

4. 제거 확인

AnyLink 서버가 설치된 경로에 디렉터리와 설치된 파일이 삭제된 것을 확인한다. 해당 서버가 설치된 후에 생성된 파일은 삭제되지 않으므로 수동으로 삭제해야 한다.