3장. jboss eap 6 설치와 서버 시작 그리고 환경 설정 ( 프리젠테이션과...
Post on 21-Jun-2015
3.677 Views
Preview:
DESCRIPTION
TRANSCRIPT
JBoss EAP 6
설치와 구성
오픈나루㈜
전준식 (010-5120-3249)
service@opennaru.com
opennaru.com | 2013 | All Rights Reserved 2
JBoss EAP6 Install : Supported Configuration
• JBoss EAP6 로 테스트된 플랫폼과 JavaVM, JDBC 드라이버와 DB , 및 각각의 지원 정책은 아래의 URL 에서 참조
• https://access.redhat.com/knowledge/articles/111663
Operating System Chipset Architec-ture
Java Virtual Ma-chine
Red Hat Enterprise Linux 6 (latest up-date)
x86 x86_64
Oracle JDK 1.6.x Oracle JDK 1.7.x IBM JDK 1.6.xIBM JDK 1.7.xOpenJDK 1.6.xOpenJDK 1.7.x
Red Hat Enterprise Linux 5 (latest up-date)
x86 x86_64
Oracle JDK 1.6.x Oracle JDK 1.7.x IBM JDK 1.6.xIBM JDK 1.7.xOpenJDK 1.6.xOpenJDK 1.7.x
Microsoft Windows 2008 Server x86 x86_64
Oracle JDK 1.6.x Oracle JDK 1.7.x
Microsoft Windows 2008 Server R2 x86_64 Oracle JDK 1.6.x Oracle JDK 1.7.x
Oracle Solaris 10 x86 x86_64 SPARC64
Oracle JDK 1.6.x Oracle JDK 1.7.x
Oracle Solaris 11 x86 x86_64 SPARC64
Oracle JDK 1.6.x Oracle JDK 1.7.x
HP-UX 11v3 Itanium 64 HP JDK 1.7.x
Supported Configurations Tested Configurations
Java Virtual Machine Version
OpenJDK [2] 1.61.7
Oracle JDK 1.61.7
IBM JDK 1.61.7
HP JDK [3] 1.7
Zing ZVM 5
opennaru.com | 2013 | All Rights Reserved 3
• EAP6 에 Native 는 3 개의 Zip 파일이 제공됨
• jboss-eap-native
• tomcat-nativejboss-eap-6.0/modules/org/jboss/as/web/main/lib/{linux,win,solaris}-{i686,x86_64,sparcv9}
• hornetQ-nativejboss-eap-6.0/modules/org/hornetq/main/lib/{i686,x86_64}
• jboss-eap-native-utils
• Openssljboss-eap-6.0/modules/native/bin/openssl (for Solaris)jboss-eap-6.0/modules/native/bin/openss-l.exe (for Windows)
• jsvc/procrunjboss-eap-6.0/modules/native/sbin/jsvc
• Tanukiwrapperjboss-eap-6.0/modules/native/sbin/wrap-per.exe (for Windows)
• jboss-eap-native-webserver-connectors
• httpd modulesjboss-eap-6.0/modules/native/lib{,64}/httpd/modules
• IIS modulesjboss-eap-6.0/modules/native/sbin/isapi_redirect.dll (for Windows)
• iPlanet modulesjboss-eap-6.0/modules/native/lib{,64}/nsapi_redirector.so (for Solaris)
JBoss EAP6 Install : Customer Portal Downloads
Download File
Application Platform 6.0.0 Apache HTTP Server for 플랫폼 별
OS 별 Apache Httpd 서버 다운로드
Application Platform 6.0.0 Native Components for 플랫폼 별 OS 별 최적화 컴포넌트 (APR )
Application Platform 6.0.0 Native Utilities for 플랫폼 별
OS 별 유틸리티 ( 서비스 구성 등 )
Application Platform 6.0.0 Web-server Connector Natives for 플랫폼 별
OS 별 HA 와 Http 로드밸런싱 모듈
Application Platform 6.0.0 Javadocs Java API
Application Platform 6.0.0 Installer GUI 형 설치본
Application Platform 6.0.0 Maven Repository
EAP6 와 관련된 Maven Artifact
Application Platform 6.0.0 Quick-starts
JavaEE6 샘플 어플리케이션
Application Platform 6.0.0 Source Code
JBosss EAP6 소스 파일
Application Platform 6.0.0 JBoss EAP6 배포판
opennaru.com | 2013 | All Rights Reserved 4
• JBoss EAP 설치판 다운로드• Customer Support Portal 에서 다운로드• Zip 배포판과 인스톨러 배포판 2 종류의 설치판 제공
• JBoss EAP6 설치 방법
1. 인스톨러에 의한 설치 (GUI)
java -jar jboss-eap6-6.0.0-installer.jar
java -jar jboss-eap6-6.0.0-installer.jar -console java -jar jboss-eap6-6.0.0-installer.jar NameOfXMLInstallationScrip-
t.xml
2. Zip 압축파일 풀기 unzip jboss-eap6-6.0.0-installer.zip
3. RPM 설치 yum groupinstall jboss-eap6
• EAP6 다운로드 URL
• https://access.redhat.com/jbossnetwork/restricted/listSoftware.html?downloadType=distributions&product=appplatform&productChanged=yes
JBoss EAP6 Install : 설치
opennaru.com | 2013 | All Rights Reserved 5
JBoss 디렉터리 구성
JBoss 설치 디렉터리
/bin
/modules
/domain
/bundles
/docs
/welcome-content
/appclient
/standalone
/log
/data
/tmp
/servers
/configuration
/ 서버
/log
/data
/tmp
/data
/deployments
/lib/ext
/log
/configuration
/temp
OSGi 번들 배포 디렉터리
XML Schema 및 설정 샘플
시작 스크립트 / 시작 설정 파일
추가 모듈 배포 디렉터리
기본 Welcome 페이지
스탠드얼론 홈 디렉터리
클라이언트용 홈 디렉터리
도메인 홈 디렉터리
서버 인스턴스 별 디렉터리
파일 시스템에 의한 App 배포 디렉터리
스탠드얼론 구성 디렉터리
도메인 구성 디렉터리
opennaru.com | 2013 | All Rights Reserved 6
JBoss EAP6 Start/Stop : 시작 스크립트
• 시작 스크립트
• <INSTALL_DIR>/bin/standalone.bat(Windows) or standalone.sh(Unix 계열 )
• <INSTALL_DIR>/bin/domain.bat(Windows) or domain.sh(Unix 계열 )
• 주요 옵션
• -b -bmanagement or -Djboss.bind.address -Djboss.bind.address.man-agement
바인딩 주소
• --server-config or -c : 프로파일 파일명 프로파일의 파일명 , 디폴트는“ standalone.xml”
• -Djboss.server.base.dir
• -Djboss.domain.base.dir
프로파일을 디렉터리 레벨로 작성하는 경우 <INSTALL_DIR>/standalone or <INSTALL_DIR>domain 를 복사해 작성
• ※ -c / -b 는 파라미터에” =” 를 넣지 않아도 동작
• JVM 파라미터 설정
• <INSTLL_DIR>/bin/standalone.conf.bat(Windows) or standalone.conf(Unix 계열 )
• <INSTLL_DIR>/bin/domain.conf.bat(Windows) or domain.conf(Unix 계열 )
opennaru.com | 2013 | All Rights Reserved 7
• Standalone 환경에서 localhost 로 바인딩• Standalone.xml 환경으로 localhost 바인드로 인스턴스 실행
JBoss EAP6 Start/Stop : standalone 환경에서 IP 와 포트 변경
[admin@fedora17 bin]$./standalone.sh -c=standalone.xml
• Standalone 환경에서 외부에서 접속 가능한 IP 설정 • -b 옵션으로 IP 바인드가 가능하고 관리도구도 – bmanagement 로 바인드
[admin@fedora17 bin]$./standalone.sh -c=standalone.xml -b=0.0.0.0 -bmanagement=0.0.0.0
• Standalone 환경에서 동일 머신에서 여러 개의 인스턴스를 실행하기• 시스템 프롭퍼티 jboss.socket.binding.port 에 의해 포트 오프셋 (offset) 를 지정
가능
[admin@fedora17 bin]$./standalone.sh -c standalone.xml -b=0.0.0.0 -bmanagement=0.0.0.0 -Djboss.-socket.binding.port-offset=100
• Standalone 환경에서 standalone-full-ha 로 프로파일 변경• 시스템 프롭퍼티 jboss.socket.binding.port 에 의해 포트 오프셋 (offset) 를 지정
가능
[admin@fedora17 bin]$./standalone.sh -c standalone-full-ha.xml -b=0.0.0.0 -bmanagement=0.0.0.0 -Dj-boss.socket.binding.port-offset=100
opennaru.com | 2013 | All Rights Reserved 8
• Domain controller 와 Host Controller 모두 domain.sh 로 실행• 신규로 서버 생성시 포트 오프셋 설정
JBoss EAP6 Start/Stop : 도메인 환경에서 IP 와 포트 변경
[admin@fedora17 bin]$./domain.sh -c=domain.xml --host-config=host.xml -b=0.0.0.0 -bmanagement=0.0.0.0
• 외부에서 접속 가능한 IP 설정 • -b 옵션으로 IP 바인드가 가능하고 관리도구도 – bmanagement 로 바인드
opennaru.com | 2013 | All Rights Reserved 9
• Standalone 구성에서는 Profile 이 각각의 파일로 존재• standalone.xml, standalone-ha.xml, standalone-full.xml,
standalone-full-ha.xml
• Domain 구성에서는 domain.xml 중에 모든 프로파일이 정의• Domain.xml 파일에 profiles 에 각각 profile 로 정의됨
JBoss EAP6 Install : 서버 구성 별 프로파일
Standalone 구성파일
standalone.xml
standalone-ha.xml
standalone-full.xml
standalone-full-ha.xml
Domain 프로파일명 default ha full full-ha
jacorb - - ○ ○
messaging - - ○ ○
webservices - - ○ ○
jgroups - ○ - ○
modcluster - ○ - ○
infinispan ○ ○ ○ ○
ee ○ ○ ○ ○
ejb3 ○ ○ ○ ○
opennaru.com | 2013 | All Rights Reserved 10
Header text
감사합니다Opennaru, Inc.
top related