• 참고
    • NMS Instance Manager : NIM (NGINX Instance Manager) 으로 표기 


  • 구성 환경
    • AWS - T2 Meduim
    • OS : Amazon Linux2 ( 5.10 Kernel )

  • NIM 제약사항
    • NGINX OSS : 1.18 이상
    • NGINX Plus : R21 이상
    • Network : 443 Port Open
    • License 필요 (Demo or Commercial License)
  • 설치 Flow
    • NMS Repository 설정
    • Click-House 설치 (Open-Source DB)
    • NIM Install
    • NIM Default Password Change
    • NIM License Import
  • Manager <-> Agent간 통신
    • gRPC Protocol 활용 

  • NGINX Repository Key Create

    • NGINX Plus License Key Create
  • Click-House Install

    • NIM 용 Database
  • sudo yum install -y yum-utils sudo yum-config-manager --add-repo 
    [<https://packages.clickhouse.com/rpm/clickhouse.repo>](<https://packages.clickhouse.com/rpm/clickhouse.repo>) sudo yum install -y clickhouse-server clickhouse
    systemctl start clickhouse-server && systemctl enable clickhouse-server
    
  • NIM INstall

    • REPO Download
  • wget -P /etc/yum.repos.d [<https://cs.nginx.com/static/files/nms.repo>](<https://cs.nginx.com/static/files/nms.repo>)
    
    • Repo baseurl Change
  • sed -i 's/centos/amzn2/g' /etc/yum.repos.d/nms.repo
    
    • Key Import
  • curl -o /tmp/nginx_signing.key <https://nginx.org/keys/nginx_signing.key>
    sudo rpmkeys --import /tmp/nginx_signing.key
    
    • NMS Install
  • sudo yum install -y nms-instance-manager
    
    • Nginx Install ( OSS or Plus )
  • ## NGINX OSS Install
    sudo amazon-linux-extras install nginx1
    systemctl enable nginx && systemctl start nginx
    
  • NIM Bring Up

    • NIM Processes Enable
  • sudo systemctl enable nms-core
    sudo systemctl enable nms-dpm
    sudo systemctl enable nms-ingestion
    sudo systemctl enable nms
    
    • NIM Process 기동
  • sudo systemctl start nms
    
    • NIM Processes Check ( nms-core / nms-dpm / nms-ingestion )
  • [root@ip-10-10-10-71 yum.repos.d]# ps aufx | grep nms
            root      1450  0.0  0.0 123588  2220 pts/0    S+   07:18   0:00                      \\_ grep --color=auto nms
            nms       1333  0.1  0.6 1350928 24116 ?       Ssl  07:18   0:00 /usr/bin/nms-ingestion
            nms       1408  1.4  1.3 1399496 56052 ?       Ssl  07:18   0:00 /usr/bin/nms-dpm
            nms       1413  0.6  0.8 1386540 35084 ?       Ssl  07:18   0:00 /usr/bin/nms-core
    
  • NIM Admin Password 구성

  • yum -y install httpd-tools
    
    • Password Change
  • [root@ip-10-10-10-71 yum.repos.d]# htpasswd -c /etc/nms/nginx/.htpasswd admin
    New password:
    Re-type new password:
    Adding password for user admin
    [root@ip-10-10-10-71 yum.repos.d]#
    
    
    • Web Access
  • <https://IP/ui>
    ## ID : admin / PW : 생성한 Password 
    
  • NIM License Import

    • Web Access
    • WebUI - Settings - Licenses
  • Upload License Click
    *********.lic > 해당 파일 Import
    

  • NIM Page 안뜰 때
    • 확인필요사항

      • /var/log/nginx/error.log
    • 1) *24 connect() to unix:/var/run/nms/core.sock failed (13: Permission denied) while connecting to upstream > 로그 확인 가능
      
      • 해결책
    • chmod 777 /var/run/nms/*.core