installUtility 명령에 대한 저장소와 프록시 설정 구성

repositories.properties 파일에서 installUtility 명령이 로컬 디렉토리 기반 저장소, Liberty Asset Repository Service의 인스턴스, IBM®WebSphere® Liberty Repository에 액세스하는 방법을 구성할 수 있습니다.

이 태스크 정보

installUtility 명령은 다음 저장소에 액세스할 수 있습니다.
  • 인터넷을 통하여 액세스 가능한 공용 IBM 호스팅 저장소인 IBM WebSphere Liberty Repository. 자세한 정보는 Liberty 저장소의 내용을 참조하십시오.
  • 엔터프라이즈의 방화벽 뒤에서 원격으로 액세스 가능한 사내 구축 환경 저장소를 작성하는 데 사용할 수 있는 개방형 소스 서비스인 Liberty 자산 저장소 서비스. 자세한 정보는 GitHub의 WASdev/tool.lars 프로젝트를 참조하십시오.
  • installUtility download 조치를 사용하거나 모든 적용 가능한 기능 및 추가 기능을 포함하는 wlp-featureRepo-<version>.zip 파일을 다운로드하여 작성한 로컬 디렉토리 기반 저장소입니다. 자세한 정보는 installUtility 명령을 사용하여 자산 다운로드의 내용을 참조하십시오.

installUtility 명령과 featureManager 명령은 둘 다 동일한 구성 특성 파일 repositories.properties를 사용합니다. 프록시 설정은 공유되지만, 저장소 설정은 installUtility 명령에서만 사용합니다. 자산을 관리하고 저장소 기반 설치, 찾기 또는 설치 제거 조작을 완료하려면 featureManager 명령 대신 installUtility 명령을 사용하십시오.

팁: --from 옵션에서 저장소를 지정하여 단일 로컬 디렉토리 기반 저장소에서 자산을 다운로드하거나 설치할 수 있습니다. repositories.properties 파일에서 추가 구성은 필요하지 않습니다. 자세한 정보는 installUtility 명령의 내용을 참조하십시오.
제한된 인터넷 액세스로 또는 방화벽을 통해 IBM WebSphere Liberty Repository에 액세스하려면 다음과 같은 호스트 및 포트에 대한 액세스 권한이 있는지 확인하십시오.
  • public.dhe.ibm.com - 포트 443의 경우
  • asset-websphere.ibm.com - 포트 443의 경우
참고: installUtility 명령은 HTTP/HTTPS 프로토콜을 사용하는 프록시 서버만 지원합니다.

프로시저

  1. 옵션: 저장소 또는 프록시 설정을 먼저 구성하면 installUtility viewSettings 명령을 실행하여 repositories.properties 파일의 구성 템플리트를 출력할 수 있습니다.

    ${wlp.install.dir}/etc/repositories.properties의 새 특성 파일에 템플리트를 복사하십시오. 특성 파일은 모든 플랫폼에서 ASCII 형식이어야 합니다.

  2. ${wlp.install.dir}/etc/repositories.properties 파일에서 설정을 정의하십시오.

    installUtility viewSettings 명령에서 템플리트를 복사한 경우 사용자 환경을 참조하도록 예제 저장소 및 프록시 설정을 변경하여 템플리트를 수정하십시오. 번호 부호(#)로 시작하는 행은 처리되지 않습니다.

    • Liberty Repository에 액세스하지 않으려면 useDefaultRepository 특성을 false로 설정하십시오. Liberty Repository는 기본적으로 사용 가능하며 자산을 설치하거나 다운로드할 때 액세스되는 마지막 저장소입니다.
      useDefaultRepository=false
    • 저장소를 정의하려면 특성을 repoName.url=url 또는 repoName.url=file_path로서 추가하십시오. 각 저장소 이름은 고유해야 합니다.

      정의된 저장소는 repositories.properties 파일에 지정된 순서대로 액세스됩니다.

      Windows 플랫폼용
      dev-rep.url=http://dev.repo.ibm.com:9080/ma/v1local-rep2.url=file:///c:/IBM/localrepo2
      local-rep3.url=C:\IBM\localrepo3
      local-rep4.url=C:\IBM\localrepo4.zip
      HP UNIX 플랫폼용Solaris 플랫폼용LINUX 플랫폼용UNIX 플랫폼용
      dev-rep.url=http://dev.repo.ibm.com:9080/ma/v1local-rep2.url=file:///usr/IBM/localrepo2
      local-rep3.url=/usr/IBM/localrepo3
      local-rep4.url=/usr/IBM/localrepo4.zip
    • 저장소에 사용자 이름 및 비밀번호가 필요한 경우, 특성 repoName.user=userIdrepoName.userPassword=password를 설정하십시오.
      사용자 이름 및 비밀번호가 필수이지만 설정되지 않은 경우 이를 제공하라는 프롬프트가 표시됩니다. 보안 개선을 위해 securityUtility encode 조치를 사용하여 비밀번호를 인코딩하십시오. 자세한 정보는 Liberty: securityUtility 명령을 참조하십시오.
      dev-rep.user=myname                            
      dev-rep.userPassword={aes}AH5NLyd7DfGb12pK17Pw+
    • 시스템에서 프록시 서버를 통해 IBM WebSphere Liberty Repository 또는 Liberty Asset Repository Service의 인스턴스에 액세스해야 하는 경우, proxyHost, proxyPort, proxyUser, proxyPassword 프록시 특성을 설정하십시오.

      보안 개선을 위해 securityUtility encode 조치를 사용하여 proxyPassword 특성 값을 인코딩하십시오. 사용자 이름과 비밀번호를 설정하지 않으면 이를 제공하라는 프롬프트가 표시됩니다.

      예:
      proxyHost=my.proxy.server.ibm.com
      proxyPort=9080
      proxyUser=myname
      proxyPassword={aes}AH5NLyd7DfGb12pK17Pw+
  3. 변경사항을 repositories.properties 파일에 저장하십시오.
  4. installUtility viewSettings 명령을 실행하여 저장소 및 프록시 설정을 검토하십시오. installUtility viewSettings 명령을 실행할 때 저장소 및 프록시 구성이 자동으로 유효성 검증됩니다. 자세한 유효성 검증 메시지를 보려면 --viewValidationMessages 옵션과 함께 명령을 실행하십시오.
    >installUtility viewSettings
    
    installUtility Settings
    ----------------------------------------------------------------------
    Properties File: c:\wlp\etc\repositories.properties
    Default Assets Repository: IBM WebSphere Liberty Repository
    Use Default Repository: True
    
    Properties File Validation
    ----------------------------------------------------------------------
    Validation Results: The properties file successfully passed the 
    validation.
    
    Configured Repositories
    ----------------------------------------------------------------------
    Name: dev-rep
    Location: http://dev.repo.ibm.com:9080/ma/v1
    User Name: myname
    Password: <Unspecified>
    
    Proxy Settings
    ----------------------------------------------------------------------
    Proxy Server: my.proxy.server.ibm.com
    Port: 9080
    User Name: myname
    Password: ********
  5. installUtility testConnection 명령을 실행하여 저장소 연결을 테스트하십시오. 사용자 이름과 비밀번호를 설정하지 않으면 이를 제공하라는 프롬프트가 표시됩니다.
    >installUtility testConnection
    Testing the connection to all configured repositories...
    This process might take several minutes to complete.
    
    Configured Repositories
    ----------------------------------------------------------------------
    Name: dev-rep
    Location: http://dev.repo.ibm.com:9080/ma/v1
    Status: Successfully connected to the configured repository.Name: IBM WebSphere Liberty Repository (Default Assets Repository)
    Status: Successfully connected to the configured repository.
    repoName을 지정하지 않고 installUtility testConnection 명령을 실행하여 repositories.properties 파일에 구성된 모든 저장소를 한꺼번에 테스트할 수 있습니다. Liberty Repository의 저장소 이름은 default입니다. Liberty Repository에 대한 연결을 테스트하려면 다음 명령을 실행하십시오.
    installUtility testConnection default

다음에 수행할 작업

installUtility 명령을 사용하여 자산을 검색하고 이를 설치하거나 구성된 저장소에서 다운로드할 수 있습니다.

주제의 유형을 표시하는 아이콘 태스크 주제



시간소인 아이콘 마지막 업데이트 날짜: Monday, 5 December 2016
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=cord&product=was-libcore-mp&topic=twlp_config_installutility
파일 이름: twlp_config_installutility.html