2017년 11월 22일 수요일

Jboss EAP 7.0.0 패치 방법

데모환경

OS version: CentOS Linux Release 7.3

Jboss EAP version: Jboss EAP 7.0.0 GA

Jboss EAP Server Home: /was/jboss/jboss-eap-7.0

Patch Info: 7.0.8 patch

Browser: google chrome













Jboss version, Patch 정보 확인

Command Line Interface 사용(이하 CLI)
$ ./jboss-cli.sh --controller=127.0.0.1:9990 –connect

[standalone@192.168.56.101:9990 /] patch info  # 버전확인

Version:             7.0.0.GA

Cumulative patch ID: base    

One-off patches:     none    


[standalone@192.168.56.101:9990 /] patch --help # 명령어 옵션 확인

SYNOPSIS

    patch <action> <action_arguments>*

  where <action> can be

    apply           - apply a patch

    history         - display the patching history

    info            - information about the active patches

    rollback        - rollback a patch that has been applied

    inspect         - fetch and print key information from the patch.xml of the specified patch file 


[standalone@192.168.56.101:9990 /] patch apply /installFile/jboss-eap-7.0.8-patch.zip # 명령어 및 패치파일 적용

{

    "outcome" : "success",

    "response-headers" : {

        "operation-requires-restart" : true,

        "process-state" : "restart-required"

    }

}

[standalone@192.168.56.101:9990 /] shutdown --restart=true # 재기동으로 확실하게 적용

[standalone@192.168.56.101:9990 /] patch rollback --reset-configuration=false # 패치 되돌리기


{


    "outcome" : "success",


    "response-headers" : {


        "operation-requires-restart" : true,

        "process-state" : "restart-required"

    }

}
[standalone@192.168.56.101:9990 /] shutdown --restart=true # 재기동으로 확인


JBoss 기동시 맨 아래 버전 정보가 나온다.


01:12:20,849 INFO  [org.jboss.as] (Controller Boot Thread) WFLYSRV0025: JBoss EAP 7.0.0.GA (WildFly Core 2.1.2.Final-redhat-1) started in 5868ms - Started 267 of 553 services (371 services are lazy, passive or on-demand)