개인 저장용 블로그

JBoss 버전 별 디렉토리 구성 파악 - 2 본문

카테고리 없음

JBoss 버전 별 디렉토리 구성 파악 - 2

우엉잇 2023. 2. 24. 11:21

 

이번 목차에서는 JBoss 버전 별 디렉토리 구성 파악을 하고자 한다. 

구성 파악하려는  JBoss 버전은 6,7 이다. 

 

버전별 디렉토리 구조는 아래와 같다. 

[mw@OracleLinux7 jboss-eap-7.4]$ ll
total 556
drwxr-xr-x. 3 mw mw   4096 Jun 23  2021 appclient
drwxr-xr-x. 4 mw mw   4096 Feb 10 20:16 bin
drwxr-xr-x. 5 mw mw   4096 Jun 23  2021 docs
drwxr-xr-x. 4 mw mw   4096 Jun 23  2021 domain
-rw-r--r--. 1 mw mw    419 Jun 23  2021 JBossEULA.txt
-rw-r--r--. 1 mw mw 496975 Jun 23  2021 jboss-modules.jar
-rw-r--r--. 1 mw mw  26530 Jun 23  2021 LICENSE.txt
drwxr-xr-x. 3 mw mw   4096 Jun 23  2021 migration      ## jboss-6추가 
drwxr-xr-x. 3 mw mw   4096 Jun 23  2021 modules
drwxr-xr-x. 6 mw mw   4096 Jun 23  2021 standalone
-rw-r--r--. 1 mw mw     65 Jun 23  2021 version.txt
drwxr-xr-x. 4 mw mw   4096 Jun 23  2021 welcome-content

[mw@OracleLinux7 jboss-eap-6.4]$ ll
total 424
drwxrwxr-x. 3 mw mw   4096 Mar 27  2015 appclient
drwxrwxr-x. 4 mw mw   4096 Mar 27  2015 bin
drwxrwxr-x. 3 mw mw   4096 Mar 27  2015 bundles        ## jboss-7 삭제 
drwxrwxr-x. 5 mw mw   4096 Mar 27  2015 docs
drwxrwxr-x. 5 mw mw   4096 Mar 27  2015 domain
-rw-rw-r--. 1 mw mw    419 Mar 27  2015 JBossEULA.txt
-rw-rw-r--. 1 mw mw 363815 Mar 27  2015 jboss-modules.jar
-rw-rw-r--. 1 mw mw  26530 Mar 27  2015 LICENSE.txt
drwxrwxr-x. 3 mw mw   4096 Mar 27  2015 modules
drwxrwxr-x. 6 mw mw   4096 Mar 27  2015 standalone
-rw-rw-r--. 1 mw mw     66 Mar 27  2015 version.txt
drwxrwxr-x. 4 mw mw   4096 Mar 27  2015 welcome-content

1.  엔진 디렉토리 구조 

디렉토리 내용 
applient 클라이언트 애플리케이션 컨테이너를 사용할 때 설정 정보 포함 
bin 기동 스크립트를 포함한 유틸리티 포함한
bundles 내부 기능에 대한 OSGi 번들 
docs 라이센스 파일, 스키마 파일 및 예제 
domain Domain 모드(JBoss EAP6에서 추가)에서 사용하는 환경 구성 파일, 배치되는 콘텐츠
modules JBoss EAP와 애플리케이션에서 필요 시에 동적으로 로드하는 모듈
standalone standalone 모드에서 사용하는 환경 구성 파일, 배치된 콘텐츠 
welcome-content  JBoss EAP6 서버에 사용하는 환경 구성 파일, 배치된 콘텐츠 
jboss-modules.jar 모듈을 로드한는 bootstrapping 메커니즈 포함 

 

2. domain 디렉토리 구조

디렉토리 내용
configuration 관리 domain 구성 파일들 포함 
date 배포된 서비스 정보 
log 도메인 로그 
servers 구성된 서버들의 정보 위치 
data 서버가 재 구동 되어서 존재해야 하는 persistent 정보 위치 
log   서비 인스턴스 로그 
tmp 서버에 의해 쓰여진 임시 파일 위치 
tmp  임시 데이터 저장

 

# 최초 설치 후 domain 디렉토리를 확인 하면 아래와 같이 구성 되어 있다. 

jboss6
[mw@OracleLinux7 domain]$ ll
total 12
drwxrwxr-x. 2 mw mw 4096 Mar 27  2015 configuration
drwxrwxr-x. 3 mw mw 4096 Mar 27  2015 data
drwxrwxr-x. 3 mw mw 4096 Mar 27  2015 tmp


jboss 7
[mw@OracleLinux7 domain]$ ll
total 8
drwxr-xr-x. 2 mw mw 4096 Jun 23  2021 configuration
drwxr-xr-x. 3 mw mw 4096 Jun 23  2021 tmp

servers, log, tmp, 등의 디렉토리는 인스턴스를 기동해야 생성 될 것으로 보인다. 

 

configuration 구조를 살짝 확인 해보면 http는 8080,  https는 8443으로 사용되는 것으로 확인되며, 해당 내용은 domain.xml 에서 확인 할 수 있고 jvm 옵션 관련되서는 domain.xml , host.xml, host-master.xml, host-slave.xml 에서 선언하는 태그를 확인 했으나 host 관련 xml 파일에서 jvm 옵션(메모리 등)을 선언해 주는 것으로 보인다. 

 

3. standlone 디렉토리 구조 

디렉토리 내용
configuration standalone 모드의 설정 파일 
data 배포된 서비스 정보
deployment application deploy 디렉토리 (hot deploy 인것같음, 자동배포)
lib 공통 라이브러리 디렉터리
log 서버 인스턴스 로그 
tmp 임시 데이터 저장

 

# 최초 설치 후 standlone 디렉토리를 확인 하면 아래와 같이 구성 되어 있다.

jboss 7 
[mw@OracleLinux7 standalone]$ ll
total 16
drwxr-xr-x. 2 mw mw 4096 Feb 10 20:16 configuration
drwxr-xr-x. 2 mw mw 4096 Jun 23  2021 deployments
drwxr-xr-x. 3 mw mw 4096 Jun 23  2021 lib
drwxr-xr-x. 3 mw mw 4096 Jun 23  2021 tmp


jboss 6 
[mw@OracleLinux7 standalone]$ ls -arlt
total 24
drwxrwxr-x.  2 mw mw 4096 Mar 27  2015 deployments
drwxrwxr-x.  3 mw mw 4096 Mar 27  2015 tmp
drwxrwxr-x.  3 mw mw 4096 Mar 27  2015 lib
drwxrwxr-x.  2 mw mw 4096 Mar 27  2015 configuration

 

이것으로 디렉토리 구조 목차를 정리하고 다음 목차에서는 jboss 버전 별 콘솔 접속에 관련 내용을 정리하도록 하겠다. 

 

* 참고 URL

https://blueyikim.tistory.com/184  #디렉토리 구조