Skip To Content

Linux에서 Portal for ArcGIS 자동 설치

다음 단계에서는 Portal for ArcGIS 자동 설치 프로세스를 안내합니다.

참고 사항:

10.6.1로 업그레이드하시겠습니까? 자세한 내용은 업그레이드Portal for ArcGIS를 참고하세요.

Portal for ArcGIS 설치 준비

  1. 최소 시스템 요구 사항을 충족하는지 확인합니다.
  2. 관리 권한이 있는 사용자로 머신에 로그인합니다. 루트 사용자로는 Portal for ArcGIS를 설치할 수 없습니다.
  3. Portal for ArcGIS에서 사용하는 포트에 설명된 대로 포트를 엽니다.
  4. 서버에서 중요하지 않은 모든 응용프로그램을 닫습니다.
  5. Portal for ArcGIS 설치 프로그램이 포함된 다운로드한 폴더를 찾아보거나 Portal for ArcGIS 미디어를 해당 드라이브에 삽입하여 설치 프로그램을 자동으로 시작합니다.

이제 Portal for ArcGIS 설치를 진행할 준비가 완료되었습니다.

Linux에서 Portal for ArcGIS 자동 설치

  1. 설치를 시작하기 전에 <CD_ROOT or untar directory>/Documentation/EULA.pdf에 있는 라이선스 동의서를 읽고 조건에 동의합니다.
  2. 프롬프트에서 설치 프로그램을 자동 실행합니다. 아래의 샘플 구문을 참고하세요.

    <CD_ROOT or untar directory>/Setup -m silent -l yes

    사용: 설치 [옵션]

    옵션설명

    -m; --mode MODE

    선택 사항입니다. 기본 설정에 따라 GUI로 설정됩니다.

    모드는 다음 중 하나입니다. 사일런트, 콘솔, gui.

    -l; --license-agreement CHOICE

    사일런트 모드에 필요합니다(필수). CHOICE는 Yes 또는 No가 될 수 있습니다.

    Yes는 Esri 마스터 동의서(E204, E300)를 읽고 동의했음을 나타냅니다. 동의서를 읽으려면 http://www.esri.com/legal/licensing-translations를 방문하세요.

    -a; --authorization-file FULL_PATH_TO_AUTHORIZATION_FILE

    선택 사항입니다. 이 옵션을 사용하지 않는 경우 설치 후 소프트웨어를 인증해야 합니다. FULL_PATH_TO_AUTHORIZATION_FILE은 Esri에서 제공한 .ecp 또는 .prvc 파일의 전체 절대 경로입니다.

    FULL_PATH_TO_AUTHORIZATION_FILE 예시:

    --authorization-file /home/user/ArcGIS_Portal.ecp

    -a /data/auth_files/ArcGIS_Portal.prvc

    -d; --directory DIRECTORY

    선택 사항입니다. 기본 설정에 따라 Portal for ArcGIS는 사용자의 $HOME 디렉터리에 설치됩니다. DIRECTORY는 다른 설치 디렉터리를 지정합니다.

    /arcgis/portal 경로가 설치 디렉터리에 추가됩니다.

    설치 프로그램이 이전 설치 디렉터리를 가리키는 경우 해당 디렉토리의 콘텐츠가 새 설치에서 자동으로 사용됩니다. 10.2 이전 버전의 설치 콘텐츠는 지원되지 않습니다.

    -v; --verbose

    설치 관리자가 자세한 정보 보기 모드로 실행됩니다.

    -h; --help

    명령줄 도움말을 나타내고 종료합니다.

    -e; --examples

    이러한 옵션의 사용 예시를 나타내고 종료합니다.

    참고 사항:

    10.6부터 Portal for ArcGIS를 설치한 후 createportal명령줄 유틸리티를 사용하여 새 포털을 생성할 수 있습니다.

  3. Configure Portal for ArcGIS to be started with the operating system by following these instructions:
    1. Switch to root user.
    2. Copy the <Portal for ArcGIS installation directory>/framework/etc/arcgisportal shell script to the appropriate supported Linux distribution-based locations provided below:
      • RHEL: /etc/rc.d/init.d/
      • SUSE: /etc/init.d/
    3. Change the directory to the applicable init.d folder, and check the arcgisportal script to make sure that root has at least read and execute permissions.
    4. Edit the script as follows:
      1. Update the portalhome variable to the Portal for ArcGIS installation directory, for example, /home/username/arcgis/portal.

      2. For RHEL only, add the line below just before # Description: Portal for ArcGIS Service:

        # chkconfig: 35 99 01

      3. Save the edits to the arcgisportal script.

    5. Still as root user, run the following commands to automatically create the links in /etc/rc*.d with the appropriate run levels:
      • RHEL:
        $ chkconfig --add arcgisportal
        $ chkconfig arcgisportal on
      • SUSE:
        $ insserv arcgisportal
        $ chkconfig arcgisportal on
    6. End the root user session.
    7. Reboot the operating system, and verify that Portal for ArcGIS restarts properly.

createportal 명령줄 유틸리티를 사용하여 포털 생성

10.6부터 Portal for ArcGIS를 설치한 후 createportal 커맨드 라인 유틸리티를 사용하여 새 포털을 생성할 수 있습니다. createportal 유틸리티에 사용 가능한 두 가지 옵션은 다음과 같습니다.

  • 명령 프롬프트에서 관리자 권한으로 createportal 유틸리티를 실행하고 이름, 성, 사용자 이름, 비밀번호, 이메일, 본인 확인 질문, 대답 및 콘텐츠 디렉터리 매개 변수를 지정합니다.
  • 지정된 매개 변수가 포함된 createportal.properties 파일을 제공합니다.

createportal 명령줄 유틸리티를 사용하려면 다음과 같이 createportal.sh 또는 -h를 사용하여 -help 스크립트를 실행합니다.

<Portal for ArcGIS Installation Directory>/tools/createportal/createportal.sh -help

유틸리티 사용 예시: createportal.sh [-fn <arg>] [-ln <arg>] [-u <arg>] [-p <arg>] [-e <arg>] [-qi <arg>] [-qa <arg>] [-d <arg>]

파일 사용 예시: createportal.sh [-f <FILE>]

참고 사항:

createportal.properties 파일에서 경로를 참조할 때 백슬래시를 이스케이프 문자로 사용해야 합니다. 예를 들어 C:\\arcgisportal 또는 \\\\<Absolute path to>\\<portal arcgisportal>를 입력합니다.

옵션설명

-fn; --firstname

포털을 구성하는 데 사용되는 초기 관리 계정의 이름입니다.

여러 단어로 된 항목은 따옴표로 묶어야 합니다.

-ln; --lastname

포털을 구성하는 데 사용되는 초기 관리 계정의 성입니다.

여러 단어로 된 항목은 따옴표로 묶어야 합니다.

-u; --username

포털을 구성하는 데 사용되는 초기 관리 계정의 사용자 이름입니다.

사용자 이름은 숫자(0~9), ASCII 문자(a~z 및 A~Z) 및 점(.)으로 구성될 수 있습니다.

-p; --password

포털을 구성하는 데 사용되는 초기 관리 계정의 비밀번호입니다.

비밀번호는 숫자(0~9), ASCII 문자(a~z 및 A~Z) 및 점(.)으로 구성될 수 있습니다.

-e; --email

포털을 구성하는 데 사용되는 초기 관리 계정의 이메일 주소입니다.

-qi; --question

잊어버린 비밀번호를 검색할 본인 확인 질문의 색인입니다. 각 색인 번호가 있는 사용 가능한 질문은 다음과 같습니다.

  • 1, 출생 도시가 어디입니까?
  • 2, 고등학교 마스코트가 무엇입니까?
  • 3 - 어머니의 성함은 무엇입니까?
  • 4, 첫 번째 자동차의 제조업체가 무엇입니까?
  • 5, 출신 고등학교의 이름은 무엇입니까?
  • 6, 가장 친한 친구의 성은 무엇입니까?
  • 7, 막내 동생의 중간 이름은 무엇입니까?
  • 8, 성장했던 동네의 이름은 무엇입니까?
  • 9, 좋아하는 캐릭터의 이름은 무엇입니까?
  • 10, 좋아하는 애완동물의 이름은 무엇입니까?
  • 11, 좋아하는 레스토랑의 이름은 무엇입니까?
  • 12, 좋아하는 책의 제목은 무엇입니까?
  • 13, 장래희망은 무엇입니까?
  • 14, 첫 번째 데이트 장소는 어디입니까?

-qa; --answer

매개변수 -qi에 대해 선택한 본인 확인 질문에 대한 대답입니다.

여러 단어로 된 항목은 따옴표로 묶어야 합니다.

-d; --contentDirectory

포털에서 호스팅되는 데이터를 저장하는 데 사용되는 콘텐츠 디렉터리의 절대 경로 및 이름입니다.

기본 설정에 따라 포털 콘텐츠 디렉터리는 이 위치에 로컬로 생성됩니다.

C:\arcgisportal

or

\\<Absolute path to>\<Content Directory>

-f; --file

createportal 유틸리티의 등록정보 파일입니다.

기본 설정에 따라 createportal.properties 파일은 다음 위치에 있습니다.

<Portal for ArcGIS Installation Directory>\tools\createportal

-h; --help

명령줄 도움말을 나타내고 종료합니다.

createportal.properties 파일의 예시:

#
# Portal for ArcGIS site creation properties
#
# First name for initial administrator account
PORTAL_ADMIN_FIRSTNAME =
# Last name for initial administrator account
PORTAL_ADMIN_LASTNAME =
# User name for initial administrator account
# Can only have the numbers 0-9, the ASCII letters a-z, A-Z and the dot character (.)
PORTAL_ADMIN_USERNAME =
# Password for primary site administrator.
# Can only have the numbers 0-9, the ASCII letters a-z, A-Z and the dot character (.)
PORTAL_ADMIN_PASSWORD =
# Initially, leave PORTAL_ADMIN_PASSWORD_ENCRYPTED set to false.
# When you run the tool the first time, the password will be
# encrypted and PORTAL_ADMIN_PASSWORD_ENCRYPTED will change to true
PORTAL_ADMIN_PASSWORD_ENCRYPTED = false
# E-mail address for initial administrator account
# e.g username@domain.com
PORTAL_ADMIN_EMAIL =
#This is the index of the secret question to retrieve a forgotten password. 
#The list of questions with their respective index numbers is as follows:
#1, What city were you born in ?"
#2, What was your high school mascot?"
#3, What is your mother's maiden name?"
#4, What was the make of your first car?"
#5, What high school did you go to?"
#6, What is the last name of your best friend?"
#7, What is the middle name of your youngest sibling?"
#8, What is the name of the street on which you grew up?"
#9, What is the name of your favorite fictional character?"
#10, What is the name of your favorite pet?"
#11, What is the name of your favorite restaurant?"
#12, What is the title of your favorite book?"
#13, What is your dream job?"
#14, Where did you go on your first date?");
PORTAL_ADMIN_SECURITY_QUESTION_INDEX =
# Answer to the secret question
PORTAL_ADMIN_SECURITY_QUESTION_ANSWER =
# Portal content directory where portal will store default and user-generated content.
# By default, the portal content directory will be created locally, 
# e.g. /<Portal for ArcGIS installation directory>/usr/arcgisportal.
PORTAL_CONTENT_DIRECTORY =

도구를 종료하기 전에 포털이 성공적으로 생성되었다는 메시지가 표시됩니다.

설치 후 구성

Portal for ArcGIS가 운영 체제와 함께 시작되도록 하려면 운영 체제와 관련된 단계를 완료합니다.

systemd를 지원하는 운영 체제

Red Hat 7.x를 사용하는 경우와 같이 운영 체제에서 부트스트랩 및 관리 프로세스에 systemd를 사용할 수 있는 경우 다음 단계에 따라 운영 체제와 함께 시작되도록 Portal for ArcGIS를 구성합니다.

  1. 명령 셸에서 루트 사용자로 전환합니다.
  2. <Portal for ArcGIS installation directory>/framework/etc/arcgisportal.service 단위 파일을 /etc/systemd/system.에 복사합니다. 파일이 복사되면 /etc/systemd/system/arcgisportal.service에 해당 파일 권한이 600으로 설정되어 있는지 확인합니다.
    참고 사항:

    이 파일은 Portal for ArcGIS 10.6.1과 함께 설치됩니다.

  3. 계속해서 루트 사용자로 다음 명령을 실행하여 /etc/systemd/system/multi-user.target.wants에 링크를 자동으로 생성합니다.
    # systemctl enable arcgisportal.service
  4. systemd 서비스가 제대로 구성되었는지 확인하려면 서비스를 다시 시작하고 해당 상태를 확인합니다.
    # systemctl stop arcgisportal.service
    # systemctl start arcgisportal.service
    # systemctl status arcgisportal.service
  5. 루트 사용자 세션을 종료합니다.
  6. 운영 체제를 다시 부팅하고 Portal for ArcGIS가 제대로 다시 시작되는지 확인합니다.

SysV를 지원하는 운영 체제

운영 체제에서 부트스트랩 및 관리 프로세스에 SysV를 사용할 수 있는 경우 다음 단계에 따라 운영 체제와 함께 시작되도록 Portal for ArcGIS를 구성합니다.

  1. 명령 셸에서 루트 사용자로 전환합니다.
  2. <Portal for ArcGIS installation directory>/framework/etc/arcgisportal 셸 스크립트를 아래와 같이 지원되는 해당 Linux 배포 기반 위치에 복사합니다.
    • RHEL: /etc/rc.d/init.d/
    • SUSE: /etc/init.d/
  3. 디렉터리를 해당 init.d 폴더로 변경하고 루트에 최소한 읽기 및 실행 권한이 있는지를 arcgisportal 스크립트에서 확인합니다.
  4. 스크립트를 다음과 같이 편집합니다.
    1. portalhome 변수를 Portal for ArcGIS 설치 디렉터리로 업데이트합니다(예시: /home/username/arcgis/portal).

    2. RHEL의 경우에만 아래 명령줄을 # 설명: Portal for ArcGIS Service 전에 추가합니다.

      # chkconfig: 35 99 01

    3. arcgisportal 스크립트에 대한 편집 내용을 저장합니다.

  5. 계속해서 루트 사용자로 다음 명령을 실행하여 적합한 실행 수준으로 /etc/rc*.d에 링크가 자동으로 생성되도록 합니다.
    • RHEL:
      $ chkconfig --add arcgisportal
      $ chkconfig arcgisportal on
    • SUSE:
      $ insserv arcgisportal
      $ chkconfig arcgisportal on
  6. 루트 사용자 세션을 종료합니다.
  7. 운영 체제를 다시 부팅하고 Portal for ArcGIS이(가) 제대로 다시 시작되는지 확인합니다.