Jboss execution Environment: linux+jdk+jboss+jsp system
JBoss Software Description: similar to tomcat. is a running JSP system environment, his web site path is similar to Tomcat, Tomcat store Web site files to the WebApps folder, and JBoss stored in the Server/default/deploy folder.
The development environment and test process are as follows:
Linu operating system: CentOS 64-bit
JBoss Software
Http://sourceforge.net/projects/jboss/files/JBoss/JBoss-4.2.3.GA
Http://sourceforge.net/projects/jboss/files/JBoss/JBoss-4.2.3.GA/jboss-4.2.3.GA.zip/download
Http://sourceforge.net/projects/jboss/files/JBoss/JBoss-4.2.3.GA/jboss-4.2.3.GA-jdk6.zip/download
Software name after download
Jboss-4.2.3.ga.zip
Jboss-4.2.3.ga-jdk6.zip
Unzip the file
Unzip/soft/jboss-4.2.3.ga.zip
Java installation: I have installed a different high version number. The JDK6 is no longer installed, and the same can be done to run JBoss after the configuration is complete.
Create a folder
CD/
mkdir data
CD data
mkdir app
CD app
Unzip/soft/jboss-4.2.3.ga.zip
cd/data/app/
chmod +x/data/app/jboss-4.2.3.ga
environment variable Settings jboss_home
Execute the vim/etc/profile command, add the environment variable code such as the following
#jdk Config
Export java_home=/usr/java/jdk1.7.0_67
Export Calsspath= $JAVA _home/lib/*.*
#jboss Config
Export Jboss_home=/data/app/jboss-4.2.3.ga
#path Config
Export path= $PATH: $JAVA _home/bin: $JBOSS _home/bin
Execute instruction source/etc/profile Refresh environment variable
Proactively launch JBoss scripts after booting
Execute instruction Vi/etc/rc.d/init.d/jboss generate script file, content such as the following
#!/bin/bash
#
#/etc/rc.d/init.d/jboss
# init script for JBoss precesses
#
# Processname:jboss
# Description:jboss is a J2SE server
# chkconfig:2345 86 16
# Description:start up the Jboss servlet engine.
if [-f/etc/init.d/functions]; Then
. /etc/init.d/functions
elif [-f/etc/rc.d/init.d/functions]; Then
. /etc/rc.d/init.d/functions
Else
Echo-e "\a jboss:unable to locate functions lib. Cannot continue. "
Exit-1
Fi
Retval=$?
Jboss_home= "/data/app/jboss-4.2.3.ga" #jboss安装文件夹
Case "$" in
Start
If [-f $JBOSS _home/bin/run.sh];
Then
echo $ "Starting Jboss"
$JBOSS _home/bin/run.sh
Fi
;;
Stop
If [-f $JBOSS _home/bin/shutdown.sh];
Then
echo $ "Stopping Jboss"
$JBOSS _home/bin/shutdown.sh
Fi
;;
*)
echo $ "Usage: $ {start|stop}"
Exit 1
;;
Esac
Exit $RETVAL
Initiate script authorization on your own initiative
Executes the chmod 755/etc/rc.d/init.d/jboss command to make the script file executable
Brochure JBoss Services
Executes the chkconfig--add/etc/rc.d/init.d/jboss command. Add it to the service
Start JBoss
Execute sh/data/app/jboss-4.2.3.ga/bin/run.sh command
Stop JBoss Service: Service JBoss Stop
Start JBoss Service: Service JBoss start
Test Certificate: The JBoss Welcome management interface is displayed after you open the URL http://localhost:8080 in Firefox browser
Linuxserverjboss perform the environment setup steps and boot yourself to initiate scripting execution