JBoss EAP 6.4 설치
JBoss EAP 6.4 설치
JBoss EAP 6.4 설치에 대해 다룬다. JBoss EAP 6.4 설치는 GUI와 Text 기반 설치 두가지를 지원 한다. 여기서는 Linux 터미널에서 Text 기반 설치에 대해서 다룬다.
사전준비
JBoss EAP 6.4 를 설치하기 위해서는 JDK 1.7 이상 필요하다. JDK 1.6도 지원한다고 되어 있지만 현시점(2016. 06) 에서 1.6은 너무나 구형이라 권장하지 않는다.
설치를 위해서는 설치 파일이 필요한데, zip 파일과 installer 파일 형태로 제공된다. zip 파일은 그냥 압축해제하면 되지만 installer 는 인스톨 과정을 거쳐야 한다. 여기서는 installer를 이용한 설치에 대해서만 다룬다.
설치
설치 레이아웃은 다음과 같다.
- JBOSS_HOME: /opt/EAP-6.4.0
- JAVA_HOME: /opt/jdk1.8.0_40
JBoss EAP 6.4 의 인스톨 파일은 jboss-eap-6.4.0-installer.jar 이다. Text 기반으로 설치를 위해서는 다음과 같이 명령어를 쳐주면 시작된다.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 |
~]$ java -version java version "1.8.0_40" Java(TM) SE Runtime Environment (build 1.8.0_40-b26) Java HotSpot(TM) 64-Bit Server VM (build 25.40-b25, mixed mode) ~]$ java -jar jboss-eap-6.4.0-installer.jar -console Select language : 0: eng 1: chn 2: deu 3: fra 4: jpn 5: por 6: spa Please choose [-1] : 0 Copyright (c) 2013 Red Hat, Inc. All rights reserved. Red Hat, JBoss and the JBoss logo are registered trademarks of Red Hat, Inc. All other trademarks are the property of their respective owners. press 1 to continue, 2 to quit, 3 to redisplay. 1 Select the installation path: [/opt/EAP-6.4.0] press 1 to continue, 2 to quit, 3 to redisplay. 1 Select the packs you want to install: 1 [x] [Required] [Red Hat JBoss Enterprise Application Platform] (542.89 KB) 2 [x] [AppClient] (34.24 KB) 3 [x] [Required] [Bin] (10.99 MB) 4 [x] [Required] [Bundles] (1.01 MB) 5 [x] [Docs] (4.75 MB) 6 [x] [Required] [Domain] (125.56 KB) 7 [x] [Required] [Domain Shell Scripts] (17.35 KB) 8 [x] [Required] [Modules] (147.01 MB) 9 [x] [Required] [Standalone] (152.77 KB) 10 [x] [Required] [Standalone Shell Scripts] (14.16 KB) 11 [x] [Required] [Welcome Content] (2.11 MB) 12 [x] [Red Hat JBoss Enterprise Application Platform Natives] (8 KB) 13 [x] [Native RHEL7 x86_64] (76 KB) 14 [x] [Native Utils RHEL7 x86_64] (53.04 KB) 15 [x] [Native Webserver RHEL7 x86_64] (254.97 KB) Total Size Required: 167.11 MB Press 0 to confirm your selections Please select which packs you want to install 0 Pack Selection Done press 1 to continue, 2 to quit, 3 to redisplay. 1 Create an administrative user This user will be added to the host container's management realm for administrative purposes. It can be used to access the management console, the management CLI or other applications secured in this realm. The password must be at least eight characters long, with one alphabetic character, one digit, and one non-alphanumeric character not including &. Admin username: [admin] admin Admin password: [] ********** Confirm admin password: [**********] ********** press 1 to continue, 2 to quit, 3 to redisplay. 1 Quickstarts Red Hat JBoss Enterprise Application Platform comes with a series of quickstart examples designed to help users begin writing applications using the Java EE 6 technologies. Would you like to install quickstarts? 0 [x] No 1 [ ] Yes Input Selection: 0 press 1 to continue, 2 to quit, 3 to redisplay. 1 Socket Bindings Configure the socket bindings for Red Hat JBoss Enterprise Application Platform. Select Port Configuration: 0 [x] Use the default port bindings for standalone and domain modes. 1 [ ] Configure an offset for all default port bindings. 2 [ ] Configure custom port bindings. Input Selection: 0 If this computer is using a pure IPv6 configuration, please check the box below. [ ] Enable pure IPv6 configuration Input 1 to select, 0 to deselect: 0 press 1 to continue, 2 to quit, 3 to redisplay. 1 Server Launch Choose server startup mode: 0 [x] Don't start the server 1 [ ] Standalone Mode 2 [ ] Domain Mode Input Selection: 0 press 1 to continue, 2 to quit, 3 to redisplay. 1 Logging Options Configure the logging levels for Red Hat JBoss Enterprise Application Platform? 0 [x] No 1 [ ] Yes Input Selection: 0 press 1 to continue, 2 to quit, 3 to redisplay. 1 Configure runtime environment There are several additional options for configuring Red Hat JBoss Enterprise Application Platform now that the server has been installed. Each option can be individually chosen, and will be configured in the order displayed upon pressing next. Would you like to do this now? 0 [x] Perform default configuration 1 [ ] Perform advanced configuration Input Selection: 0 press 1 to continue, 2 to quit, 3 to redisplay. 1 [ Starting to unpack ] [ Processing package: Red Hat JBoss Enterprise Application Platform (1/15) ] [ Processing package: AppClient (2/15) ] [ Processing package: Bin (3/15) ] [ Processing package: Bundles (4/15) ] [ Processing package: Docs (5/15) ] [ Processing package: Domain (6/15) ] [ Processing package: Domain Shell Scripts (7/15) ] [ Processing package: Modules (8/15) ] [ Processing package: Standalone (9/15) ] [ Processing package: Standalone Shell Scripts (10/15) ] [ Processing package: Welcome Content (11/15) ] [ Processing package: Red Hat JBoss Enterprise Application Platform Natives (12/15) ] [ Processing package: Native RHEL7 x86_64 (13/15) ] [ Processing package: Native Utils RHEL7 x86_64 (14/15) ] [ Processing package: Native Webserver RHEL7 x86_64 (15/15) ] [ Unpacking finished ] [ Starting processing ] Starting process Logging installation information (1/4) IzPack variable state written to /opt/EAP-6.4.0/installation/InstallationLog.txt Starting process Adding temporary admin user (2/4) Exit code: 0 Command completed successfully. Starting process Adding admin user (3/4) Exit code: 0 Command completed successfully. Starting process Unpacking natives (4/4) Command success: cp -rP /opt/EAP-6.4.0/jboss-eap-6.4/modules /opt/EAP-6.4.0 Command success: cp /opt/EAP-6.4.0/jboss-eap-6.4/SHA256SUM /opt/EAP-6.4.0 Unpacking complete. Create shortcuts in the Start-Menu (y/n) [y]:n Installation has completed successfully. Application installed on /opt/EAP-6.4.0 Would you like to generate an automatic installation script and properties file? (y/n) [n]:n [ Console installation done ] |
설치 중간중간에 관리자가 선택해야할 사항들이 존재한다. 설치할 패키지들 목록과 포트 설정, 서버 설정, 로깅 설정등을 보다 디테일하게 할 수도 있다.
삭제
삭제는 설치한 디렉토리를 삭제하면 되지만 uninstaller 를 제공한다. EAP_HOME 디렉토리에 Uninstaller 디렉토리에 보면 uninstaller.jar 파일을 제공한다. 역시 Text 기반 삭제는 다음과 같이 하면 된다.
1 |
]$ java -jar uninstaller.jar -console |