2007年6月11日星期一

Installation of JBOSS on AIX

在 AIX 安装 JBOSS 全过程

This is a successful procedure for installation of JBOSS.
This can also be referred for UNIX, HP-UX, Linux


1. Operating System:
IBM AIX 5.2 (minimum AIX level 5200-07 (APAR IY67914) for 32 Bit
or> 5200-07 (APAR IY67914) for 64 Bit)

2. Java Development Tools:
IBM Java SDK 5.0
Download from: http://www-128.ibm.com/developerworks/java/jdk/aix/service.html)

3. downlaod JBoss 4.0.5 or later
Download from: http://labs.jboss.com/jbossas/downloads

Please take great note that if you downlaod both jboss-4.2.0.GA-src.tar.gz and jboss-4.0.5.GA-src.tar.gz and use the commands of gunzip and tar to unpack it, you will encounter problem as the error, tar: 0511-169 A directory checksum error on media; 1 not equal to 44318. if you use command, tar xvhif jboss-4.0.5.GA-src.tar to unpack the package you also don't know how to build them as well as you encounter problems.

4. For item 3, pls downlaod windows format version, jboss-4.0.5.GA.zip or jboss-4.2.0.GA.zip

5. Please downlaod unzip of AIX from http://aixpdslib.seas.ucla.edu/packages/unzip.html

6. On AIX server, first copy jboss-4.0.5.GA.zip to /asw directory for example, then
#cd /asw
# unzip jboss-4.0.5.GA.zip. after this you will see a directory, jboss-4.0.5.GA created
#ls -l
/asw/jboss-4.0.5.GA

7. Now please set up the enviroment variables

# export JBOSS_HOME=/asw/jboss-4.0.5.GA
# export JAVA_HOME=/usr/java5_64
# export PATH=//usr/java5_64/bin:/asw/jboss-4.0.5.GA/bin:$PATH

After this setting up for environment variables , you need to test if Java5 is working
pilecms:/home/csadmin#>java -version
java version "1.5.0"
Java(TM) 2 Runtime Environment, Standard Edition (build pap64dev-20070511(SR5))
IBM J9 VM (build 2.3, J2RE 1.5.0 IBM J9 2.3 AIX ppc64-64 j9vmap6423-20070426 (JI
T enabled)
J9VM - 20070420_12448_BHdSMr
JIT - 20070419_1806_r8
GC - 200704_19)
JCL - 20070511

8. Now you can start up JBOSS server
#run.sh --> you can see lots of info, showed on screen
#nohup run.sh& ---> backend run Jboss serveer

For example as below

# run.sh
=========================================================================

JBoss Bootstrap Environment

JBOSS_HOME: /asw/jboss-4.0.5.GA

JAVA: /usr/java5_64/bin/java

JAVA_OPTS: -Dprogram.name=run.sh -Xms128m -Xmx512m -Dsun.rmi.dgc.client.gcInte
rval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000

CLASSPATH: /asw/jboss-4.0.5.GA/bin/run.jar:/usr/java5_64/lib/tools.jar

=========================================================================

11:51:29,867 INFO [Server] Starting JBoss (MX MicroKernel)...
11:51:29,876 INFO [Server] Release ID: JBoss [Zion] 4.0.5.GA (build: CVSTag=Bra
nch_4_0 date=200610162339)
11:51:29,881 INFO [Server] Home Dir: /asw/jboss-4.0.5.GA
11:51:29,882 INFO [Server] Home URL: file:/asw/jboss-4.0.5.GA/
11:51:29,885 INFO [Server] Patch URL: null
11:51:29,885 INFO [Server] Server Name: default
11:51:29,886 INFO [Server] Server Home Dir: /asw/jboss-4.0.5.GA/server/default
11:51:29,887 INFO [Server] Server Home URL: file:/asw/jboss-4.0.5.GA/server/def

0 评论: