首先,升级jdk
[root@localhost ~]# tar xf /softs/jdk-7-linux-i586.tar.gz -C /usr/java
[root@localhost jdk1.7.0]# export JAVA_HOME=/usr/java/jdk1.7.0
[root@localhost jdk1.7.0]# export CLASSPATH=/usr/java/jdk1.7.0/lib
[root@localhost jdk1.7.0]# export PATH=$JAVA_HOME/bin:$PATH
[root@localhost jdk1.7.0]# java -version
java version "1.7.0"
Java(TM) SE Runtime Environment (build 1.7.0-b147)
Java HotSpot(TM) Client VM (build 21.0-b17, mixed mode)
[root@localhost jdk1.7.0]# echo $JAVA_HOME
/usr/java/jdk1.7.0
[root@localhost jdk1.7.0]# echo $PATH
/usr/java/jdk1.7.0/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:/bin
[root@localhost local]# mv jboss-as-distribution-6.1.0.Final.zip /usr/local/
[root@localhost local]# unzip jboss-as-distribution-6.1.0.Final.zip
[root@localhost local]# mv jboss-6.1.0.Final jboss
[root@localhost local]# cd jboss
[root@localhost jboss]# export JBOSS_HOME=/usr/local/jboss[root@localhost jboss]# PATH=$PATH:$JBOSS_HOME/bin
[root@localhost jboss]# export JBOSS_HOME PATH
[root@localhost jboss]# echo $JBOSS_HOME
/usr/local/jboss
[root@localhost ~]# /usr/local/jboss/bin/run.sh -b 0.0.0.0
[root@localhost ~]# lsof -i:8080
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
java 3718 root 447u IPv4 16205 TCP *:webcache (LISTEN)
浏览器访问http://192.168.254.153:8080/