How to install JBOSS in Linux
1) First install the java and set the class path in /etc/profile
How to install JDK 6 (jdk-6u24-linux-i586-rpm.bin)
Download jdk-6u24-linux-i586-rpm.bin from
http://www.oracle.com/technetwork/java/javase/downloads/index.html
Copy jdk-6u24-linux-i586-rpm.bin to /opt
[root@test opt]# ls
Jdk-6u24-linux-i586-rpm.bin
[root@test opt]# chmod +x jdk-6u24-linux-i586-rpm.bin
[root@test opt]# ./jdk-6u24-linux-i586-rpm.bin
This will install the jdk 1.6 to /usr/java/jdk1.6.0_24
Set the Class Path
vi /etc/profile
export JAVA_HOME=/usr/java/jdk1.6.0_24
export PATH=$JAVA_HOME/bin:$PATH
2) Download the JBOSS
Go here and grab a copy of JBoss AS. Latest stable at this time of writing is 4.2.2 GA. (I’ll probably do a post on JBoss 5 at some point.) When you get to the Sourceforge page, make sure you grab the correct package. The packages with src in their names are source packages. Only download them if you want to compile JBoss yourself. I will assume you don’t.
Installing
Once you have downloaded JBoss AS, you need to extract it. I chose to do so into /opt. The following needs to be done as root:
# cd /opt # unzip /home/lorenzod/dl/jboss-4.2.2.GA.zip
After a few seconds it should be done, and ls will show you that there is a new directory called jboss-4.2.2.GA. If you want you can change the name of the directory to jboss, jboss4 or whatever makes you happy. I’ll keep the name as it is.
Testing the server
To make sure everything is fine up to this point, let’s try to start the server.
# cd /opt/jboss-4.2.2.GA # bin/run.sh
You should see loads of log messages flying by in your terminal. That is normal. Eventually you will see a message like this:
22:31:21,073 INFO [Server] JBoss (MX MicroKernel) [4.2.2.GA (build: SVNTag=JBoss_4_2_2_GA date=200710221139)] Started in 14s:615ms
Note that by default JBoss will only listen on 127.0.0.1 (localhost), which means it’s only accessible from the computer you are running JBoss on. To make it listen to other interfaces as well restart the server like this (you can press CTRL+C to stop JBoss if it s running):
# cd /opt/jboss-4.2.2.GA # bin/run.sh -b 0.0.0.0
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home