5.3. 관리 CLI를 사용하여 JBoss EAP 서버 오프라인 업데이트
다음 예제에서는 관리 CLI를 사용하여 독립 실행형 서버 및 관리형 도메인에서 JBoss EAP를 오프라인으로 업데이트하는 방법을 설명합니다. 이는 대상 서버 설치에 외부 Maven 리포지토리에 대한 액세스 권한이 없는 시나리오에서 유용합니다. 관리 CLI를 사용하여 서버를 업데이트할 수 있습니다. 이렇게 하려면 서버를 업데이트하는 데 필요한 아티팩트가 포함된 Maven 리포지토리의 위치를 지정해야 합니다. Red Hat 고객 포털에서업데이트에 대한 Maven 리포지토리를 다운로드할 수 있습니다.
사전 요구 사항
- 시스템에서 필요한 아티팩트를 로컬로 포함하는 Maven 아카이브 리포지토리가 있습니다.
프로세스
관리 CLI를 시작합니다.
EAP_HOME/bin/jboss-cli.shJBoss EAP를 오프라인으로 업데이트합니다.
독립 실행형 서버에서 JBoss EAP를 오프라인으로 업데이트합니다.
[standalone@localhost:9990 /] installer update --maven-repo-files=<An absolute or a relative path pointing to the local archive file that contains a maven repository>관리형 도메인에서 JBoss EAP를 오프라인으로 업데이트합니다.
[domain@localhost:9990 /] installer update --host=target-host --maven-repo-files=<An absolute or a relative path pointing to the local archive file that contains a maven repository>
JBoss EAP 서버를 다시 시작하여 업데이트 프로세스를 완료합니다.
참고--perform-installation옵션으로 서버를 다시 시작할 때JBOSS_EAP/bin/jconsole.sh 및와 같은 다른 프로세스가 JBOSS_EAP/bin/bin.sh 폴더에서 시작되지 않는지 확인해야 합니다. 이 예방 조치는 서버 업데이트 중에 다른 프로세스에서 사용 중인 파일을 작성하는 데 있어서의 충돌을 방지합니다.JBOSS_EAP/bin/appclient.sh독립 실행형 서버에서 JBoss EAP 서버를 다시 시작하십시오.
[standalone@localhost:9990 /] shutdown --perform-installation관리형 도메인에서 JBoss EAP 서버를 다시 시작하십시오.
[domain@localhost:9990 /] shutdown --host=target-host --perform-installation