安装java
[root@localhost src]# rz
解压并配置环境变量
[root@localhost src]# tat zxf jdk-8u91-linux-x64.gz
[root@localhost src]# vim /etc/profile
增加以下三行
export JAVA_HOME=/data/server/jdk1.8.0_91
export PATH=$JAVA_HOME/bin:$PATH
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
使其立即生效
[root@localhost src]# source /etc/profile
[root@localhost src]# java -version
java version "1.8.0_91"
Java(TM) SE Runtime Environment (build 1.8.0_91-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.91-b14, mixed mode)
安装jboss
[root@localhost src]# rz
解压并配置环境变量
[root@localhost server]# unzip jboss-4.2.2.GA
[root@localhost src]# vim /etc/profile
增加以下行
export JBOSS_HOME=/data/server/jboss-4.2.2.GA
[root@localhost src]# source /etc/profile
修改配置文件
vim /data/server/jboss-4.2.2.GA/server/default/deploy/jboss-web.deployer/server.xml
找到以下行,修改为自己IP
开启jboss
cd /data/server/jboss-4.2.2.GA/bin/
[root@localhost bin]# ./run.sh
网页访问IP:8080