Feb 022010
 

To install jboss on CentOS 5, create the jpackage.repo and place it in /etc/yum.repos.d.

touch /etc/yum.repos.d/jpackage.repo
vim /etc/yum.repos.d/jpackage.repo

add the following information to the file:

# Be sure to enable the distro specific repository for your distro below:
# - jpackage-fc for Fedora Core
# - jpackage-rhel for Red Hat Enterprise Linux and derivatives

[jpackage-generic]
name=JPackage (free), generic
mirrorlist=http://www.jpackage.org/mirrorlist.php?dist=generic&type=free&release=5.0
failovermethod=priority
gpgcheck=1
gpgkey=http://www.jpackage.org/jpackage.asc
enabled=1

[jpackage-rhel]
name=JPackage (free) for Red Hat Enterprise Linux $releasever
mirrorlist=http://www.jpackage.org/mirrorlist.php?dist=redhat-el-$releasever&type=free&release=5.0
failovermethod=priority
gpgcheck=1
gpgkey=http://www.jpackage.org/jpackage.asc
enabled=0

[jpackage-generic-nonfree]
name=JPackage (non-free), generic
mirrorlist=http://www.jpackage.org/jpackage_generic_nonfree_5.0.txt
failovermethod=priority
gpgcheck=1
gpgkey=http://www.jpackage.org/jpackage.asc
enabled=0

# Updates

[jpackage-generic-updates]
name=JPackage (free), generic
mirrorlist=http://www.jpackage.org/mirrorlist.php?dist=generic&type=free&release=5.0-updates
failovermethod=priority
gpgcheck=1
gpgkey=http://www.jpackage.org/jpackage.asc
enabled=1

[jpackage-rhel-updates]
name=JPackage (free) for Red Hat Enterprise Linux $releasever
mirrorlist=http://www.jpackage.org/mirrorlist.php?dist=redhat-el-$releasever&type=free&release=5.0-updates
failovermethod=priority
gpgcheck=1
gpgkey=http://www.jpackage.org/jpackage.asc
enabled=0

[jpackage-generic-nonfree-updates]
name=JPackage (non-free), generic
mirrorlist=http://www.jpackage.org/jpackage_generic_nonfree_5.0-updates.txt
failovermethod=priority
gpgcheck=1
gpgkey=http://www.jpackage.org/jpackage.asc
enabled=0

Then run

yum update
and then

yum install jbossas

when the install is completed successfully you should see
“Complete!”
at the end of the install.

...
xml-commons-jaxp-1.2-apis.noarch 0:1.3.04-5.jpp5 xml-commons-jaxp-1.3-apis.noarch 0:1.3.04-5.jpp5
xml-commons-resolver.i386 0:1.1-1jpp.12 xml-im-exporter.noarch 0:1.1-4.jpp5
xml-security.noarch 0:1.3.0-2.jpp5 xom.noarch 0:1.2.1-1.jpp5
xpp2.noarch 0:2.1.10-6.jpp5 xpp3.noarch 0:1.1.3.8-1.jpp5

Complete!

to start JBoss automatically at startup

/sbin/chkconfig jbossas on

Start JBoss by running

/etc/init.d/jbossas start

JVM args can be found in /etc/jbossas/run.conf.

 Posted by at 4:18 am

 Leave a Reply