First, the system environment
System platform: RedHat 6.4
Java version:jdk-6u45-linux-x64
Jboss Version:jboss-5.1.0.ga-jdk6
Second, download jdk1.6
http://www.oracle.com/technetwork/java/javasebusiness/downloads/java-archive-downloads-javase6-419409.html# Jdk-6u45-oth-jpr
Third, download JBoss 5.1
Http://sourceforge.net/projects/jboss/files/JBoss/JBoss-5.1.0.GA/jboss-5.1.0.GA-jdk6.zip/download
Four, decompression
1, decompression jdk1.6.45
Cd/root/jboss5.1_jdk1.6_installationpackage
Bash./jdk-6u45-linux-x64.bin
MV Jdk1.6.0_45/usr/local/java
2, decompression Jboss-5.1.0
Cd/root/jboss5.1_jdk1.6_installationpackage
Unzip jboss-5.1.0.ga-jdk6.zip-d/usr/local/
V. Configuring Environment variables
#vi/etc/profile
#添加如下内容
#set Java Environment
Java_home= "/usr/local/java"
Class_path= "$JAVA _home/lib: $JAVA _home/jre/lib"
Path= ".: $PATH: $JAVA _home/bin"
Export Java_home Class_path PATH
Six, input vi/etc/sysconfig/iptables, add the following
#jboos Port
-A input-m state--state new-m tcp-p TCP--dport 8080-j ACCEPT
Seven, finally restart the firewall to make the configuration effective
/etc/init.d/iptables restart
Eight, run
#/usr/local/jboss/bin/run.sh-b 192.168.2.51
Nine, testing
http://192.168.2.51:8080
X. Shutting down the server
#/usr/local/jboss/bin//shutdown.sh–s (note case), or find its PID number, and kill it.
Find the Jboos command Ps-ef|grep JBoss, such as Kill-9 6970