JDK7.0.17 + Jboss7.1.1.Final 安装

#JDK安装

cd /opt/
tar xvf soft.tar.gz
tar -zxvf jdk-7u17-linux-x64.gz -C /usr/local
ln -s /usr/local/jdk1.7.0_17/ /usr/local/jdk
vim /etc/profile.d/java.sh
#set java environment
export JAVA_BINDIR=/usr/local/jdk/bin
export JAVA_HOME=/usr/local/jdk
export JAVA_ROOT=/usr/local/jdk
export JDK_HOME=/usr/local/jdk
export JRE_HOME=/usr/local/jdk/jre
export CLASSPATH=.:$JAVA_HOME/lib:$JAVA_HOME/jre/lib
export PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH
JBOSS_HOME=/opt/jboss
PATH=$PATH:$JBOSS_HOME/bin
export JBOSS_HOME PATH

source /etc/profile.d/java.sh
java -version
********************************************************************************************
#JBOSS安装
cd /opt/
tar xvf jboss-as-7.1.1.Final.tar.gz
ln -s jboss-as-7.1.1.Final jboss

你可能感兴趣的:(java,jboss)