sudo apt-get install ant
Download JBoss and unzip.
~$ mv jboss-4.2.3.GA /home/erdenebatt/Apps/jboss
~$ sudo cp /home/erdenebatt/Apps/jboss/bin/jboss_init_redhat.sh /home/erdenebatt/Apps/jboss/bin/jboss_init_ubuntu.sh
~$ sudo gedit /home/erdenebatt/Apps/jboss/bin/jboss_init_ubuntu.sh
#define where jboss is - this is the directory containing directories log, bin, conf etc
JBOSS_HOME=${JBOSS_HOME:-"/home/erdenebatt/Apps/jboss"}
#define the user under which jboss will run, or use 'RUNASIS' to run as the current user
JBOSS_USER=${JBOSS_USER:-"erdenebatt"}
#make sure java is in your path
JAVAPTH=${JAVAPTH:-"/usr/bin"}
#configuration to use, usually one of 'minimal', 'default', 'all'
JBOSS_CONF=${JBOSS_CONF:-"default"}
#if JBOSS_HOST specified, use -b to bind jboss services to that address
JBOSS_BIND_ADDR=${JBOSS_HOST:+"-b 0.0.0.0"}
WARNING: Use JBoss 5.1.0.GA's jboss_init_redhat.sh file !!!
~$ sudo cp /home/erdenebatt/Apps/jboss/bin/jboss_init_ubuntu.sh /etc/init.d/jboss
~$ sudo /etc/init.d/jboss start
~$ sudo update-rc.d jboss defaults
-$ sudo update-rc.d -f jboss remove
No comments:
Post a Comment