Saturday, September 28, 2013

HOWTO: Install/Setup JBoss (centos 6.X)

cd /tmp/
wget http://download.jboss.org/jbossas/7.1/jboss-as-7.1.1.Final/jboss-as-7.1.1.Final.zip
unzip -q jboss-as-7.1.1.Final.zip
mv jboss-as-7.1.1.Final /usr/share/
ln -s /usr/share/jboss-as-7.1.1.Final/  /usr/share/jboss-as
useradd jboss-as
chown -R jboss-as:jboss-as /usr/share/jboss-as /usr/share/jboss-as-7.1.1.Final/
mkdir /var/run/jboss-as
chown -R jboss-as:jboss-as jboss-as
mkdir /etc/jboss-as/
cp /usr/share/jboss-as/bin/init.d/jboss-as.conf /etc/jboss-as/
vi /etc/jboss-as/jboss-as.conf
and un-comment the following lines
JBOSS_USER=jboss-as
JBOSS_CONSOLE_LOG=/var/log/jboss-as/console.log
mkdir /var/log/jboss-as
chown jboss-as:jboss-as /var/log/jboss-as
cp /usr/share/jboss-as/bin/init.d/jboss-as-standalone.sh /etc/init.d/jboss
chkconfig jboss on
cd /usr/share/jboss-as/standalone/configuration/
vi standalone.xml
and look for 127.0.0.1 and replace them to 0.0.0.0
275 
276 
277 
278 
279 
280 
281 
282 
283 
284 
288 
289 
290       
 
/etc/init.d/jboss start
 
default ports for the jboss can be found in the standalone.xml file
 
 
291 
292 
293 
294 
295 
296 
297 
298 
299 
300 
301 
302 
303 
304 
305     
 

0 comments:

Post a Comment