The IT Alchemy Lab really doesn't have any set "purpose" to speak of. It is more about the IT technologies and issues I come across in my day-to-day business, meetings and chats (lunches, coffee and drinks) with my IT colleagues and friends.

Blog Archive

Sunday, May 4, 2008

Setting up JBoss

This one is easy.
Grab JBoss (latest version of this blog is [4.2.2.GA]) Here

Explode it to /usr/local/
Create the JBoss group: groupadd jboss
create the JBoss user: useradd -g jboss -d /usr/local/jboss-?.?.?
Set your password: passwd jboss
????
????

Suggested: download the jboss file I use [Here], unzip it to /usr/local/bin/ and change permissions on it: chown jboss:jboss /usr/local/bin/jboss;chmod 755 /usr/local/jboss
(IF you are using the above file you will need to execute 1 more command) mkdir -p /usr/local/jboss-?.?.?/logs/archive

change ownership: chown -R jboss:jboss /usr/local/jboss-?.?.?

Syntax: jboss {start|stop|restart|tail|pid|resetpid|starttail|stoptail|help}
Argument List:
start Start the JBoss server
stop Stop the JBoss server
restart Stop and re-Start the server
tail Tail the server log file [Found at: $JBOSS_HOME/logs/server.log]
pid List the running JBoss pid [Found at: $JBOSS_HOME/bin/jboss.server.pid]
resetpid Reset $JBOSS_HOME/bin/jboss.server.pid to 0
starttail Start the server and tail the server log file
stoptail Stop the server and tail the server log file
help The Command Line Arguement defintion

To start the server, simply execute: jboss start
To stop the server, use: jboss stop
To tail the log file use: jboss tail

All done - now we are ready for the next part.

No comments:

About Me

My photo
Don't tell people how to do things, tell them what to do and let them surprise you with their results. --General George S. Patton
Open Source Links | Sourceforge | Slashdot | Open Source