Wolfram Computation Meets Knowledge

Linux에서 Lightweight Grid Manager로 grid Mathematica Server를 설치하는 방법

gridMathematica Server를 설정하기 위해서는 다음이 필요합니다.

계산 노드에 gridMathematica Server 설치하기

Linux용 gridMathematica Server 설치 프로그램은 Linux 터미널에서 실행되는 bash 스크립트입니다. 터미널에 익숙하지 않은 경우 how to use the terminal 가이드를 참고하시기 바랍니다.

  1. 컴퓨터에서 실행중인 Wolfram 제품을 모두 종료합니다.
  2. 터미널을 열고 설치 프로그램이 있는 디렉토리로 이동합니다. 예를 들어, 설치 프로그램이 데스크톱 화면에 있는 경우 다음을 실행합니다.
     cd Desktop 

    이제 디렉토리가 데스크톱으로 변경됩니다. 설치 파일이 데스크톱 화면에 있는지 확인하려면 ls 명령을 사용합니다.

  3. 설치 프로그램을 실행하기 위해서는 관리자 권한이 필요합니다. sudo 명령을 사용하여 설치 스크립트를 실행합니다. 예를 들어 프로그램의 이름이 “installer.sh”라면 다음을 실행합니다.
    sudo bash installer.sh

    sudo는 컴퓨터의 관리자 비밀번호 입력을 요구합니다. 관리자 비밀번호를 입력하면 설치가 시작됩니다.

  4. 설치 프로그램은 아카이브의 무결성을 확인한 다음 압축을 해제하면 설치가 시작됩니다. 압축이 풀리면 설치 디렉토리를 입력하라는 메시지가 표시됩니다.
    Enter the installation directory, or press ENTER to select
    /usr/local/Wolfram/gridMathematicaServer/14.0:
  5. Enter를 누르면 gridMathematica Server는 기본 디렉토리에 설치됩니다. 소프트웨어를 다른 위치에 설치하려면 원하는 설치 디렉토리의 전체 파일 경로를 입력하고 Enter를 누릅니다.

    설치가 완료되면 Lightweight Grid Manager를 설정하라는 메시지가 표시됩니다.

    Do you want to configure the Wolfram Lightweight Grid Manager?
    
    [y]es (Recommended)
    	
      Use this option if this machine is not part of an existing cluster 
    management framework.
    	
    [n]o
    
      Use this option if you will access this machine with a cluster management framework (e.g. Windows Computer Cluster Server, Sun grid Engine, Platform LSF), if you will access this machine with a remote shell protocol (e.g. SSH), 
    or if you will install Lightweight Grid manually.
    	
      If you choose this option but later change your mind, you can reinstall and choose yes.
  6. “y”를 입력하여 “yes” 옵션을 선택하고 Enter를 누릅니다. 데몬을 실행할 사용자 계정을 선택하라는 메시지가 표시됩니다.
    Please select a User Account Method
    
    Mathematica kernels and the Wolfram Lightweight Grid Manager daemon will run as the user you select here. 
    If you are unsure which settings apply to your situation, check with your system administrator.
    
      (1) Create a local account (Recommended)
    
        Use this option to create a new user account on this computer. This allows you to configure security settings specifically for Mathematica.
    	
      (2) Use an existing account
    
        Use this option if you want to use a network user account or an existing local account.
  7. Enter를 눌러 계정을 만듭니다. 사용자 계정을 입력하라는 메시지가 표시됩니다.
    Enter the name of the user account to create, or press ENTER to select (wolframgrid):
  8. 새 로컬 계정을 만들고 “wolframgrid”라고 이름을 지정하는 것을 권장합니다. 새 사용자 계정을 작성하는 것이 좋습니다. Enter를 눌러 계정 이름을 확인합니다.

    새로운 wolframgrid 사용자 계정의 비밀번호를 생성하라는 메시지가 표시됩니다.

    Enter a password for the user account "wolframgrid":
  9. 생성된 계정의 로그인 비밀번호를 선택합니다. 메시지가 나타나면 비밀번호를 다시 한번 입력합니다.

    Web Interface Admin Account와 비밀번호를 생성하라는 메시지가 표시됩니다.

    Web Interface Admin Account
    
    This password is used to log in as 'admin' to the web interface to perform such actions as killing kernels and changing the configuration.
    
    Type a password for the web admin:
  10. Choose a login password for the Web Interface Admin Account. Re-enter the password when you are prompted to do so.

    You are prompted to enter a directory in which to place the gridMathematica executable scripts.

    Launch the web interface to install your license:
    
    http://localhost:3737/WolframLightweightGrid/Manager
    .
    .
    .
    Type the directory path in which the gridMathematica Server script(s) will be created, or press ENTER to select /usr/local/bin:
  11. 기본 디렉토리에 gridMathematica Server를 설치하는 경우 Enter를 클릭합니다. gridMathematica Server를 다른 디렉토리에 설치하려면 디렉토리의 전체 파일 경로를 입력하고 Enter를 누릅니다.

    Mathematica가 이미 컴퓨터에 설치되어있는 경우 기존의 바로 가기를 덮어 쓸 것인지 묻는 메시지가 표시됩니다.

    The scripts 'MathKernel', 'Mathematica', 'WolframKernel', 'math', 
    'mathematica', 'mcc', 'wolfram' already exist in the directory /usr/local/bin. 
    The following actions can be performed on the existing file(s).
    
      (1) Overwrite
      (2) Rename
      (3) Cancel
    
    Type your selection, or press ENTER to select (1):
  12. 이미 설치되어 있는 독립 실행형 Mathematica 버전을 시작하는 데 방해가될 수 있으므로 덮어 쓰기를 권장하지 않습니다. “3”을 입력하고 Enter를 눌러 이 단계를 취소합니다.

    WolframScript allows Wolfram Language code to be run from the command line and from self-executing script files. It is always available from /usr/local/Wolfram/gridMathematicaServer/14.0/Executables/wolframscript. 
    
    WolframScript system integration makes the wolframscript binary accessible from any terminal, and allows .wls script files to be executed by double-clicking them in the file manager.
    
    Install WolframScript system integration? [y/n]
  13. 설치 프로그램은 이제 명령줄 또는 스크립트를 사용하여 Wolfram 언어 코드를 실행하기 위한 선택적 추가 기능인 wolframscript를 설치할 것인지 묻습니다. “y”를 입력하고 싶지 않으면 “n”을 입력하고 “Enter”를 누릅니다. WolframScript를 설치하려면 “y”를, 그렇지 않으면 “n”을 입력합니다.

이제 설치가 완료되었습니다.

 

gridMathematica Server의 라이선스 활성화하기

  1. gridMathematica Server가 설치되어 있는 디렉토리로 디렉토리를 변경합니다. 기본 위치는 다음과 같습니다.
    cd /usr/local/Wolfram/gridMathematicaServer/14.0/Executables
  2. 다음 명령을 사용하여 gridMathematica를 엽니다.
    ./Mathematica
  3. gridMathematica Server를 활성화합니다. gridMathematica를 활성화하면 ~/.Mathematica/Licensing/mathpass에 mathpass 파일이 생성됩니다.
  4. 모든 사용자가 활성화된 gridMathematica 커널에 접근할 수 있도록하기 위해 mathpass 파일을 소위 기본 디렉토리로 이동시킵니다. sudo mv 명령을 사용하여 이 작업을 수행할 수 있습니다.

    sudo mv ~/.Mathematica/Licensing/mathpass /usr/share/Mathematica/Licensing/.

 

gridMathematica Kernel 테스트하기

  1. 웹 브라우저에서 localhost:3737을 열면 Status 페이지가 나타납니다.
  2. 왼쪽 패널은 방금 설치한 서버를 포함하여 로컬 네트워크에서 보이는 모든 gridMathematica Server를 나타냅니다.

    Kernel Settings ► Services로 이동합니다.

  3. Open Kernel을 클릭하여 커널을 열면 경고 메시지가 나타납니다.
  4. OK를 클릭하여 경고 메시지를 확인합니다. Wolfram 커널이 시작을 시도합니다.
  5. Wolfram 커널이 초기화 되기를 기다립니다. 연결 상태가 나타납니다.
  6. Kernel state가 Available로 뜨는지 확인합니다.

이제 Lightweight Grid Manager의 설정이 완료되고 테스트 역시 마쳤습니다.

[English]

설명이 도움이 되었나요?
아니오

하실 말씀이 있습니까?

피드백 감사합니다.

제출하기

지원 문의

청구서, 제품 동기화에 관한 질문에서 기술적인 질문까지 부담없이 문의하세요.

1-800-WOLFRAM (국제 전화는 +1-217-398-0700)

고객 지원

월요일 - 금요일
8am–5pm 중부 표준시

  • 제품 등록 및 동기화
  • 구매 전 정보 및 주문
  • 설치 및 동작

고급 기술지원 (해당 고객을 대상으로)

월요일 - 목요일
8am–7pm 중부 표준시

금요일
8:30–10am & 11am–5pm 중부 표준시

  • 우선적 기술지원
  • Wolfram 전문가들의 제품 지원
  • Wolfram 프로그래밍
  • 고급 설치 지원