jboss安装

Jboss:
http://downloads.sourceforge.net/project/jboss/JBoss/JBoss-5.1.0.GA/jboss-5.1.0.GA.zip?use_mirror=nchc
Jdk:
http://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/VerifyItem-Start/jdk-6u17-linux-i586.bin?BundledLineItemUUID=o_5IBe.oXW4AAAElnHQxcGz8&OrderID=LsNIBe.o7SAAAAElknQxcGz8&ProductID=lBFIBe.oSOMAAAEkGehn5G0y&FileName=/jdk-6u17-linux-i586.bin
一、下载jboss 5.1和jdk1.6(我把他下载到/usr/local/src/tarbag)
jboss 5.1ZIP包  http://sourceforge.net/projects/jboss/files/JBoss/JBoss-5.1.0.GA/
java jdk包      http://java.sun.com/javase/downloads/widget/jdk6.jsp
二、解压
#cd /usr/local/src/tarbag
#./jdk-6u16-linux-i586.bin  //当前目录生成一个jdk1.6.0_16
#mv jdk1.6.0_16 /usr/local/java //把刚生成的目录"jdk1.6.0_16"重命名为"java"
#unzip jboss-5.1.0.GA-jdk6.zip -d /usr/local/   //解压到/usr/local目录下
#mv jboss-5.1.0.GA jboss  //重命名为jboss
三、配置,定义环境变量
#vi /etc/profile
//添加如下内容
export JAVA_HOME=/usr/local/java
CLASSPATH=/usr/local/java/lib/dt.jar:/usr/local/java/lib/tools.jar
PATH=/usr/local/java/bin:$PATH
export PATH JAVA_HOME CLASSPATH
#vi /usr/local/jboss/bin/run.sh
//在最上面得注释下面加上以下内容
JAVA_HOME=/usr/local/java
四、运行
#/usr/local/jboss/bin/run.sh -b 192.168.50.200 &
五、测试
http://192.168.50.200:8080
六、关闭服务器
#/usr/local/jboss/bin/shutdown.sh -S

你可能感兴趣的:(jboss,职场,休闲)