JBoss installation
From Oxxus Wiki
Oxxus currently offers the following versions of JBoss prepared and packaged for simple installation on all Linux distributions available for our VPS servers.
- JBoss 4.2.3
- JBoss 5.0
- JBoss 5.1
- JBoss 6.0
We continuously add new options and packages as they become available and are properly tested.
Contents |
Installing packages
To begin the installation of JBoss packages, log in to your VPS server via SSH. This can be achieved with a client like PuTTy or a console application available on your operating system of choice. Once logged on to your VPS via SSH, ensure that you are the root user. If you logged on under a different user you can either use sudo or su - commands to obtain root privileges. Otherwise log off and log on with the root user password as all commands that need to be executed require you to be root.
Fedora/CentOS and Debian/Ubuntu use different instructions for installation but the process is similar and streamlined by our prepared packages so the differences are virtually non existent.
After deciding on the JBoss version you need you can proceed to the installation section.
Fedora and CentOS
$ yum install eroute-jboss4 $ yum install eroute-jboss50 $ yum install eroute-jboss51 $ yum install eroute-jboss6
An example of installing the version 5.1 below, shows the output of the installation procedure:
[root@test ~]# yum install eroute-jboss51 Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * addons: ftp.linux.ncsu.edu * base: mirror.umoss.org * extras: mirror.highspeedweb.net * rpmforge: fr2.rpmfind.net * updates: mirror.steadfast.net Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package eroute-jboss51.i386 0:5.1.0.GA-1 set to be updated --> Finished Dependency Resolution Dependencies Resolved ================================================================================ Package Arch Version Repository Size ================================================================================ Installing: eroute-jboss51 i386 5.1.0.GA-1 eroute 127 M Transaction Summary ================================================================================ Install 1 Package(s) Upgrade 0 Package(s) Total download size: 127 M Is this ok [y/N]:
Entering y and pressing Enter confirms the download and installation. This step could have been skipped if -y option is used with the first command.
Is this ok [y/N]: y Downloading Packages: eroute-jboss51-5.1.0.GA-1.i386.rpm | 127 MB 00:56 Running rpm_check_debug Running Transaction Test Finished Transaction Test Transaction Test Succeeded Running Transaction Installing : eroute-jboss51 1/1 Brought to you by: www.webhostingcustomersupport.com type: service jboss5 start - to lounch jboss 5 Installed: eroute-jboss51.i386 0:5.1.0.GA-1 Complete!
Installation has now been completed and JBoss service can be started by issuing the commands below.
All files were installed in /var/jboss5/ including all necessary configuration files and deploy directory where you can deploy your applications.
[root@test ~]# cd /var/jboss5/ [root@test jboss5]# ls bin common docs JBossORG-EULA.txt lib server client copyright.txt jar-versions.xml lgpl.html readme.html [root@test jboss5]# cd server/default/deploy [root@test deploy]# ls admin-console.war legacy-invokers-service.xml cache-invalidation-service.xml mail-ra.rar ...
Ubuntu and Debian
$ apt-get install jboss4 $ apt-get install jboss50 $ apt-get install jboss51 $ apt-get install jboss6
Starting and stopping JBoss
To start, stop and restart your JBoss service by issuing the following commands:
$ service jboss5 stop $ service jboss5 start $ service jboss5 restart
Here is the output of JBoss start command:
[root@test jboss5]# service jboss5 start JBOSS_CMD_START = cd /var/jboss5/bin; /var/jboss5/bin/run.sh -c default -b 0.0.0.0
JBoss service has now been started.
Changing JBoss version
If at any point you decide to downgrade or upgrade your JBoss version the process is very simple.
$ service jboss5 stop $ yum remove eroute-jboss51
After this you can proceed with installation of the desired version.
In case of Debian or Ubuntu OS you would use apt-get command instead.
Notes
You will have to start the Apache service as well as it acts as a proxy/frontend to JBoss.