Instana 저장소 추가 및 stanctl 도구 설치

온라인 환경 및 에어갭 환경에 Standard Edition 를 설치하기 전에, Instana 저장소를 추가하고 해당 stanctl 도구를 설치해야 합니다.

참고: 다음 섹션의 설치 명령어는 루트 사용자를 위한 것입니다. 일반 사용자(비루트 사용자)인 경우 다음 명령어를 실행하려면. sudo을 사용하십시오.

Instana 저장소 추가

호스트의 루트 사용자로서 다음 명령어를 실행하여 저장소를 추가하십시오:

참고: 다음 명령어에서 <download_key> 를 라이선스와 함께 받은 다운로드 키로 대체하십시오. 자세한 내용은 라이선스 구매를 참조하십시오.
  • Ubuntu 또는 Debian 호스트를 사용하는 경우 다음 명령어를 실행하십시오:

    참고: 호스트가 Instana 설치 패키지에 접근할 수 있도록 호스트의 `/etc/apt/sources.list` sources.list 파일에 ` Instana ` 저장소를 추가해야 합니다.
    export DOWNLOAD_KEY=<download_key>
    
    echo 'deb [signed-by=/usr/share/keyrings/instana-archive-keyring.gpg] https://artifact-public.instana.io/artifactory/rel-debian-public-virtual generic main' > /etc/apt/sources.list.d/instana-product.list
    
    cat << EOF > /etc/apt/auth.conf
    machine artifact-public.instana.io
      login _
      password $DOWNLOAD_KEY
    EOF
    wget -nv -O- --user=_ --password="$DOWNLOAD_KEY" https://artifact-public.instana.io/artifactory/api/security/keypair/public/repositories/rel-debian-public-virtual | gpg --dearmor > /usr/share/keyrings/instana-archive-keyring.gpg
    
  • Red Hat® Enterprise Linux®, CentOS Stream, Amazon Linux 또는 Oracle Linux 호스트를 사용 중이라면 다음 명령어를 실행하십시오:

    export DOWNLOAD_KEY=<download_key>
    cat << EOF > /etc/yum.repos.d/Instana-Product.repo
    [instana-product]
    name=Instana-Product
    baseurl=https://_:$DOWNLOAD_KEY@artifact-public.instana.io/artifactory/rel-rpm-public-virtual/
    enabled=1
    gpgcheck=0
    gpgkey=https://_:$DOWNLOAD_KEY@artifact-public.instana.io/artifactory/api/security/keypair/public/repositories/rel-rpm-public-virtual
    repo_gpgcheck=1
    EOF
    
  • SUSE Linux Enterprise Server (SLES) 호스트를 사용하는 경우 다음 명령어를 실행하십시오:

    export DOWNLOAD_KEY=<download_key>
    cat << EOF > /etc/zypp/credentials.d/instana_auth
    username=_
    password=$DOWNLOAD_KEY
    EOF
    cat << EOF > /etc/zypp/repos.d/Instana-Product.repo
    [instana-product]
    name=Instana-Product
    baseurl=https://artifact-public.instana.io/artifactory/rel-rpm-public-virtual/?credentials=instana_auth
    enabled=1
    gpgcheck=0
    gpgkey=https://artifact-public.instana.io/artifactory/api/security/keypair/public/repositories/rel-rpm-public-virtual?credentials=instana_auth
    repo_gpgcheck=1
    EOF
    

stanctl 명령줄 도구 설치

Standard Edition 는 라는 명령줄 stanctl 도구로 관리되며, 이 도구를 설치해야 합니다.

  • Ubuntu 또는 Debian 호스트를 사용하는 경우 다음 명령어를 실행하십시오:

    1. 호스트의 패키지 인덱스 파일을 업데이트하십시오.

      apt update -y
      
    2. stanctl 설치를 수행하십시오.

      apt install -y stanctl
      
    3. 자동 업데이트를 방지하려면 패키지 stanctl 버전을 설정하십시오.

      apt-mark hold stanctl
      
  • Red Hat Enterprise Linux 또는 CentOS Stream 호스트를 사용 중이라면 다음 명령어를 실행하십시오:

    1. 저장소를 yum 새로고침하세요.

      yum clean expire-cache -y
      
    2. 호스트의 패키지 인덱스 파일을 업데이트하십시오.

      yum update -y
      
    3. stanctl 설치를 수행하십시오.

      yum install -y stanctl
      
    4. 호스트에 버전락 플러그인이 설치되어 있지 않은 경우, 다음 명령어를 실행하여 플러그인을 설치하십시오.

      yum install python3-dnf-plugin-versionlock
      
    5. 자동 업데이트를 방지하려면 패키지 stanctl 버전을 설정하십시오.

      yum versionlock add stanctl
      
  • Amazon Linux 또는 Oracle Linux 호스트를 사용하는 경우 다음 명령어를 실행하십시오:

    1. 저장소를 dnf 새로고침하세요.

      dnf clean expire-cache -y
      
    2. 호스트의 패키지 인덱스 파일을 업데이트하십시오.

      dnf update -y
      
    3. stanctl 설치를 수행하십시오.

      dnf install -y stanctl
      
    4. 자동 업데이트를 방지하려면 패키지 stanctl 버전을 설정하십시오.

      dnf versionlock add stanctl
      
  • SLES 호스트가 있는 경우 다음 명령어를 실행하십시오:

    1. 호스트의 패키지 인덱스 파일을 새로고침하고 업데이트하십시오.

      zypper refresh
      
      참고: 질문을 볼 때 항상 신뢰한다는 의미의 ', '를 입력하세요 a. Do you want to reject the key, trust temporarily, or trust always? [r/t/a/?] (r):
    2. stanctl 설치를 수행하십시오.

      zypper install -y stanctl
      

도구를 설치하면 자동으로. $PATH에 추가됩니다. 명령어는 stanctl 어떤 디렉터리에서든 실행할 수 있습니다. 설치한 stanctl 버전을 확인하려면 다음 명령어를 실행하십시오:

stanctl --version

명령어에 stanctl 대한 자세한 내용은 stanctl 명령어 사용을 참조하십시오.