미들웨어/Jboss

JBoss EAP 자격증 취득 1 - 아키텍처 및 기능

우엉잇 2024. 7. 8. 15:02

 

해당 모듈에서는 JBoss 아키텍처 및 기능 및 설치를 확인 할 수 있는 단원임. 

설치 방법만 정확하게 알면 될 것 같다. 

 

1. CLI 설치
   * 설치 파일에 따라 다름 (zip, installer jar, 등)
     
    1.1. zip 설치 경우

[wasadm@localhost media]$  unzip jboss-eap-7.4.0.zip

# 기동 확인
[wasadm@localhost media]$  ${JBOSS_HOME}/bin/standalone.sh
.
.
(생략)
00:41:48,574 INFO  [org.jboss.as] (Controller Boot Thread) WFLYSRV0025: JBoss EAP 7.4.0.GA (WildFly Core 15.0.2.Final-redhat-00001) started in 11656ms - Started 317 of 556 services (343 services are lazy, passive or on-demand)


     - JBOSS_HOME 과 같은 환경 변수에 대해 별도로 설정 해주지 않아도 됨. 

   1.2. installer jar 설치 경우

[wasadm@localhost media]$ java -jar jboss-eap-7.4.0-installer.jar 

# 언어 선택 
Select your language below : 
0: English
1: 中文
2: Deutsch
3: français
4: 日本語
5: português
6: español
Please choose [0] : 

# 라이센스 약관 확인 
END USER LICENSE AGREEMENT
 RED HAT JBOSS(r) MIDDLEWARE(tm)
PLEASE READ THIS END USER LICENSE.....(생략)
....
press 1 to continue, 2 to quit, 3 to redisplay.
1
 
# JBoss 설치 위치 
Select the installation path:  [/home/wasadm/EAP-7.4.0

# JBoss packs 설치 
Select the packs you want to install:
1    [x] [Required]      [Red Hat JBoss Enterprise Application Platform] (33.15 MB)
2    [x]                 [AppClient] (31.93 KB)
3    [x]                 [Docs] (19.94 MB)
4    [x] [Required]      [Modules] (195.61 MB)
5    [x] [Required]      [Welcome Content] (2.1 MB)
Total Size Required: 250.83 MB
Press 0 to confirm your selections
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.

For minimal security, the password should be at least eight characters long, with one alphabetic character, one digit, and one non-alphanumeric symbol excluding "&".

Admin username: [admin


Admin password: [] 
********
Confirm admin password: [********

Validation warning: 
Password should have at least one non-alphanumeric symbol.
press 1 to continue, 2 to quit, 3 to redisplay.
1

[ Starting to unpack ]
[ Processing package: Red Hat JBoss Enterprise Application Platform (1/5) ]
[ Processing package: AppClient (2/5) ]
[ Processing package: Docs (3/5) ]
[ Processing package: Modules (4/5) ]
[ Processing package: Welcome Content (5/5) ]
[ Unpacking finished. ]

# 런타임 환경 구성 
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". What would you like to do now?
0  [x] Perform default configuration
1  [ ] Perform advanced configuration
Input Selection: 


press 1 to continue, 2 to quit, 3 to redisplay.
1

[ Starting processing ]
Starting process Logging installation information (1/3)
IzPack variable state written to /home/wasadm/EAP-7.4.0/installation/InstallationLog.txt
Starting process Adding admin user (2/3)
Starting process Cleanup extraneous folders and tepmorary files (3/3)

# 시작 메뉴?? (체크 필요함, 중요한건 아닐듯)
Create shortcuts in the start menu (y/n) [y]:

Select a program group for the shortcuts: [JBoss Platform]:

[ Creating shortcuts ....... ]
Installation has completed successfully.
Application installed on /home/wasadm/EAP-7.4.0

Would you like to generate an automatic installation script and properties file? (y/n) [n]:
y
Select path for the automatic installation script: [/home/wasadm/EAP-7.4.0/auto.xml] 

XML written successfully.
[ Console installation done ]

# 기동 확인
[wasadm@localhost media]$  ${JBOSS_HOME}/bin/standalone.sh
.
.
(생략)
01:18:03,090 INFO  [org.jboss.as] (Controller Boot Thread) WFLYSRV0025: JBoss EAP 7.4.0.GA (WildFly Core 15.0.2.Final-redhat-00001) started in 11897ms - Started 317 of 556 services (343 services are lazy, passive or on-demand)

 


2. GUI 설치 
   *  JBoss Certification 시험 시 나오지 않음

 

3. 관리자 생성

 

3.1. 관리자 정보 관련 파일 

mgmt-users.properties는 EAP 관리 도구에 엑세스 하는데 사용 

application-users.properties는 JAAS를 사용하는 Java EE 앱에서 사용
* JAAS : 클라이언트 및 서버 시스템을 보호하기 위한 유연하고 확장성 있는 자바 인증 및 권한 부여 서비스를 제공하는 표준 API

 

3.2. 관리자 생성 

[wasadm@localhost bin]$ ./add-user.sh 

What type of user do you wish to add? 
 a) Management User (mgmt-users.properties) 
 b) Application User (application-users.properties)
(a): 

Enter the details of the new user to add.
Using realm 'ManagementRealm' as discovered from the existing property files.
Username : admin
User 'admin' already exists and is disabled, would you like to... 
 a) Update the existing user password and roles 
 b) Enable the existing user 
 c) Type a new username
(a): 
Password recommendations are listed below. To modify these restrictions edit the add-user.properties configuration file.
 - The password should be different from the username
 - The password should not be one of the following restricted values {root, admin, administrator}
 - The password should contain at least 8 characters, 1 alphabetic character(s), 1 digit(s), 1 non-alphanumeric symbol(s)
Password : JBoss@RedHat123
Re-enter Password : JBoss@RedHat123

What groups do you want this user to belong to? (Please enter a comma separated list, or leave blank for none)[  ]: 
Updated user 'admin' to file '/product/was/jboss-eap-7.4/standalone/configuration/mgmt-users.properties'
Updated user 'admin' to file '/product/was/jboss-eap-7.4/domain/configuration/mgmt-users.properties'
Updated user 'admin' with groups  to file '/product/was/jboss-eap-7.4/standalone/configuration/mgmt-groups.properties'
Updated user 'admin' with groups  to file '/product/was/jboss-eap-7.4/domain/configuration/mgmt-groups.properties'
Is this new user going to be used for one AS process to connect to another AS process? 
e.g. for a slave host controller connecting to the master or for a Remoting connection for server to server Jakarta Enterprise Beans calls.
yes/no? no

JBOSS CONSOLE 접속 후 해당 계정으로 접속
(Server 가 GUI 환경이 아닐 경우 JBOSS 인터페이스 및 네트워크 설정을 변경해야함) 

 

[wasadm@localhost bin]$ ./add-user.sh --help 을 통해 옵션을 확인 할 수 있으며, -dc, -sc를 통해 별도의 도메인 및 서버에 사용자 정보를 별도로 저장 할 수 있음

 

4. 그 외

 

  4.1.
  ${JBOSS_HOME}/bin/init.d 하위의 jboss-eap-rhel.sh, jboss-eap.conf 을 통해 정상적으로 설치(PATH 확인만) 되었는지  체크 할수 있는 방안이 있지만 사용하지 않음