Install JBoss

15Feb09

Langsung aja yuks kita install jboss. Klo yang belum tau apakah jboss, silahkan tanya sama mbah google..

A. Install Java SDK

Sebagai super user (root) jalankan perintah berikut ini :
1) Cek apakah ada Java lain yang terinstall
rpm qa | grep java
2) Uninstall jika ada Java yang telah terinstall dalam sistem anda
rpm -e gccjava3.2.320 –nodeps
3) Download Java SDK versi terakhir, jdk6linuxi586.bin dari http://java.sun.com
4) Install Java SDK
sh jdk6linuxi586.bin

B. Set Variable Environment Java

1) Edit file ~/.bash_profile dan tambahkan beberapa baris untuk mendefinisikan PATH dari aplikasi Java SDK yang telah terinstall dalam sistem anda.

Tambahkan baris berikut :

export JAVA_HOME=/usr/java/jdk1.6.0_10
export PATH=$PATH:/usr/java/jdk1.6.0_10/bin

kemudian simpan, lalu jalankan diconsole dengan perintah :

. ~/.bash_profile

C. Installasi JBoss

1) Download JBoss5.0.0.GA.zip dari http://www.jboss.org
2) Ekstrak file dalam lokasi yang anda inginkan, misalkan direktori /opt
masuk ke direktori /opt
cd /opt
kemudian ekstrak filenya
unzip JBoss5.0.0.GA.zip
3) Hasil ekstract file terdapat beberapa konfigurasi Jboss :
Jboss all
Jboss default
Jboss minimal

D. Menjalankan dan Mematikan JBoss Server

Sebagai super user (root) sistem, jalankan perintah berikut :
1) Menjalankan Server :
/opt/jboss5.0.5.GA/bin/run.sh

Akan muncul informasi Startup dan konfigurasi Jboss Server
=================================================================
===
JBoss Bootstrap Environment
JBOSS_HOME: /opt/jboss5.0.5.
GA
JAVA: /opt/jdk1.6.0/bin/java
JAVA_OPTS: Dprogram.
name=run.sh server
Xms128m
Xmx512m
Dsun.
rmi.dgc.client.gcInterval=3600000 Dsun.
rmi.dgc.server.gcInterval=3600000
CLASSPATH: /opt/jboss5.0.5.GA/bin/run.jar:/opt/jdk1.6.0/lib/tools.jar
=================================================================
===
15:09:52,003 INFO [Server] Starting JBoss (MX MicroKernel)…
15:09:52,005 INFO [Server] Release ID: JBoss [Zion] 5.0.5.GA (build: CVSTag=Branch_4_0 date=200610162339)
15:09:52,008 INFO [Server] Home Dir: /opt/jboss5.0.5.GA
15:09:52,008 INFO [Server] Home URL: file:/opt/jboss5.0.5.GA/
15:09:52,010 INFO [Server] Patch URL: null
15:09:52,011 INFO [Server] Server Name: default
15:09:52,011 INFO [Server] Server Home Dir: /opt/jboss5.0.5.GA/server/default
15:09:52,012 INFO [Server] Server Home URL: file:/opt/jboss5.0.5.GA/server/default/
15:09:52,012 INFO [Server] Server Log Dir: /opt/jboss5.0.5.GA/server/default/log
15:09:52,012 INFO [Server] Server Temp Dir: /opt/jboss5.0.5.GA/server/default/tmp
15:09:52,013 INFO [Server] Root Deployment Filename: jbossservice.xml
15:09:53,275 INFO [ServerInfo] Java version: 1.6.0,Sun Microsystems Inc.

2) Menjalankan Server dengan pilihan konfigurasi minimal :
/opt/jboss5.0.5.GA/bin/run.sh -c minimal

3) Menjalankan Server agar bisa diakses oleh komputer lain menggunakan ip address pada browser:
/opt/jboss5.0.5.GA/bin/run.sh -b 0.0.0.0

4) Mematikan Server :
/opt/jboss5.0.5.GA/bin/shutdown.sh -S

5) Halaman web jboss server :
Buka browser (misal : firefox), dan arahkan URL ke : http://localhost:8080 atau http://ip_address_server:8080

Berikut tampilan JBoss di browser firefox :

JBoss On Browser



No Responses Yet to “Install JBoss”

  1. Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


%d bloggers like this: