3장. jboss eap 6 설치와 서버 시작 그리고 환경 설정 ( 프리젠테이션과...

10
JBoss EAP 6 설설설 설설 설설설설설 설설설 (010-5120-3249) [email protected]

Upload: opennaru-inc

Post on 21-Jun-2015

3.677 views

Category:

Software


1 download

DESCRIPTION

오픈나루 - http://opennaru.tistory.com/ JBoss EAP6 를 운영하기 위해 필수적으로 필요한 JDK 설치 방법에 대해서 레드햇 리눅스 환경에서 Oracle JDK 1.7 설치 기준으로 설명합니다. Linux 환경에서 Oracle JDK 는 이전 포스트를 참조하여 주세요. * 리눅스에서 RPM 방식으로 Oracle JDK ( Java) 1.7 설치 - http://opennaru.tistory.com/17 1. JBoss EAP 설치환경 확인과 다운로드 1-1. JBoss EAP 설치 환경 확인 JBoss EAP 6 를 설치하기 전에 해당 버전이 지원하는 구성 환경에 대한 확인이 필요합니다. JBoss EAP 6로 테스트된 플랫폼과 Java VM, JDBC 드라이버와 DB 등에 대한 상세한 지원 내용은 아래의 URL에서 참조할 수 있습니다. https://access.redhat.com/site/ko/articles/297473 1-2. JBoss EAP 다운로드 JBoss EAP 를 다운로드 하기 위해서는 jboss.org 에 사용자 등록을 한 후 http://www.jboss.org/products/eap 에 접속하여 다운로드 할 수 있습니다. 이미 JBoss EAP 에 대한 서브스크립션을 보유한 경우에는 다음과 같은 순서로 레드햇 고객 포탈에서 다운로드 할 수 있습니다. 순서 작업 1 고객 서비스 포털(https://access.redhat.com)에 로그인한다. 2 메뉴에서 Downloads → JBoss Enterprise Middleware → Downloads 를 선택한다. 3 Product 콤보 박스에서 Application Platform 을 선택한다. 4 Application Platform 최신 버전을 찾아 Download 링크를 클릭한다. 5 Quickstarts, Maven Repository, HTTP Connectors 네이티브 바이너리 등 필요한 다른 패키지를 다운로드 한다. 2. JBoss EAP 6 설치 JBoss EAP 6 설치는 Red Hat의 RPM 저장소인 yum 레파지토리를 이용한 설치 방법과 GUI 설치 방법 또는 ZIP 압축파일을 사용하는 방법들이 있습니다. 윈도우의 인스톨러처럼 GUI를 이용한 방법으로 설치할 수 있습니다. 하지만 가장 많이 사용하는 방법은 간단하게 ZIP 파일을 unzip 을 이용하여 원하는 디렉토리에 설치하는 것입니다. $ $ unzip jboss-eap-6.2.0.zip 3. 관리자 등록 JBoss EAP6 에서는 보안을 위해서 기본적으로 등록된 관리자가 없는 상태입니다. GUI 방식으로 설치하면 설치 과정에서 관리자 아이디와 패스워드를 설정하게 되지만, ZIP 파일을 이용하여 설치할 경우에는 add-user.sh 를 실행하여 초기 관리자 아이디와 패스워드를 등록해야 합니다. $JBOSS_HOME/bin/ 디렉터리로 이동한 후 “./add-user.sh” 를 실행합니다. $ ./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): a Enter the details of the new user to add. Realm (ManagementRealm) : Username : admin Password : [패스워드 입력] Re-enter Password : [패스워드 입력] About to a

TRANSCRIPT

Page 1: 3장. JBoss EAP 6 설치와 서버 시작 그리고 환경 설정 ( 프리젠테이션과 따라하기 )

JBoss EAP 6

설치와 구성

오픈나루㈜

전준식 (010-5120-3249)

[email protected]

Page 2: 3장. JBoss EAP 6 설치와 서버 시작 그리고 환경 설정 ( 프리젠테이션과 따라하기 )

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

Page 3: 3장. JBoss EAP 6 설치와 서버 시작 그리고 환경 설정 ( 프리젠테이션과 따라하기 )

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 배포판

Page 4: 3장. JBoss EAP 6 설치와 서버 시작 그리고 환경 설정 ( 프리젠테이션과 따라하기 )

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 : 설치

Page 5: 3장. JBoss EAP 6 설치와 서버 시작 그리고 환경 설정 ( 프리젠테이션과 따라하기 )

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 배포 디렉터리

스탠드얼론 구성 디렉터리

도메인 구성 디렉터리

Page 6: 3장. JBoss EAP 6 설치와 서버 시작 그리고 환경 설정 ( 프리젠테이션과 따라하기 )

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 계열 )

Page 7: 3장. JBoss EAP 6 설치와 서버 시작 그리고 환경 설정 ( 프리젠테이션과 따라하기 )

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

Page 8: 3장. JBoss EAP 6 설치와 서버 시작 그리고 환경 설정 ( 프리젠테이션과 따라하기 )

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 로 바인드

Page 9: 3장. JBoss EAP 6 설치와 서버 시작 그리고 환경 설정 ( 프리젠테이션과 따라하기 )

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 ○ ○ ○ ○

Page 10: 3장. JBoss EAP 6 설치와 서버 시작 그리고 환경 설정 ( 프리젠테이션과 따라하기 )

opennaru.com | 2013 | All Rights Reserved 10

Header text

감사합니다Opennaru, Inc.