jboss 7 설치

os는 centos 6 입니다.

설치
unzip jboss-as-7.1.1.Final.zip -d /usr/share

adduser jboss
chown -fR jboss.jboss /usr/share/jboss-as-7.1.1.Final/
su jboss
cd /usr/share/jboss-as-7.1.1.Final/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): a
We select “a”, next you should see the following message:
Enter the details of the new user to add.
Realm (ManagementRealm) :
Username : jboss
Password :
Re-enter Password :
* Realm은 그냥 엔터 치시고,  Username과 Password는 admin console 에 접속하기위한 계정입니다.


외부에서 admin console 웹접속허용
vi /usr/share/jboss-as-7.1.1.Final/standalone/configuration/standalone.xml

<interface name="management">
     <inet-address value="${jboss.bind.address.management:0.0.0.0}"/>
</interface>
<interface name="public">
  <inet-address value="${jboss.bind.address:0.0.0.0}"/>
</interface>

서비스 등록
cp /usr/share/jboss-as-7.1.1.Final/bin/init.d/jboss-as-standalone.sh /etc/init.d/jboss
mkdir /etc/jboss-as
vi jboss-as.conf

JBOSS_HOME=/usr/share/jboss-as-7.1.1.Final
JBOSS_CONSOLE_LOG=/home/jboss/log/jboss-console.log
JBOSS_USER=jboss


service jboss start

댓글

이 블로그의 인기 게시물

Session 대신 JWT를 사용하는 이유

VSCode에서의 VIM 단축키와 키보드 구매 가이드

우분투에서 테스트링크(testlink)와 맨티스(mantis)로 테스팅 서버 구성하기