Jboss Installation quick guide for beginners

Jboss as become common and it turned to be a hot skill among web / application server administrators. There are few queries which i use to get very commonly.

how to change the default port
how to start multiple servers on different ports etc.
JBoss gives a lots of options to administrators and hence it is sometimes a bit confusing too. Lets start with how to install Jboss on your System, I am providing the examples on a windows system. This will work absolutly fine on other UNix flavors but you just need to change the commands accordingly (example change run.bat to run.sh).

Jboss 5 can be downloaded here

Jboss 5
JDK1.6 / JRE 1.6

I assume the following :-

You are installing Jboss on your windows system
Your Jboss installation directory is C:\JBoss5\
Your java installation is at C:\Program Files\Java\jre6\

Set java home and Path or
Edit the values as follows in C:\JBoss5\jboss-eap-5.1\jboss-as\bin\run.conf.bat and shutdown.bat

set “JAVA_HOME=C:\Program Files\Java\jre6
set “JAVA=C:\Program Files\Java\jre6\bin\java”
set “JAVA_OPTS=-Xms128m -Xmx512m

How to start jboss with default configuration

run.bat -c default

How to start Jboss on a specific port other than localhost

run.bat -c default -b <hostname>

How to shutdown Jboss

shutdown.bat -S -u <username> -p <password>

Add Comment