Centos7下jboss的搭建

安装Java
[[email protected] src]# rz
Centos7下jboss的搭建
解压
[[email protected] src]# tar zxf jdk-8u91-linux-x64.gz
[[email protected] src]# mkdir -p /data/server
[[email protected] src]# mv jdk1.8.0_91/ /data/server/
[[email protected] src]# cd /data/server/
[[email protected] server]# cd jdk1.8.0_91
配置环境变量
[[email protected] src]# vim /etc/profile
添加以下三行
Centos7下jboss的搭建
使其环境生效
[[email protected] jdk1.8.0_91]# source /etc/profile
[[email protected] jdk1.8.0_91]# java -version
Centos7下jboss的搭建
安装jboss
[[email protected] src]# rz
Centos7下jboss的搭建
解压
[[email protected] src]# unzip jboss-4.2.2.GA.zip -d /data/server/
[[email protected] src]# cd /data/server/
[[email protected] server]# ls
jboss-4.2.2.GA jdk1.8.0_91
配置环境变量
[[email protected] server]# vim /etc/profile
末尾添加一行Centos7下jboss的搭建
使其生效
[[email protected] server]# source /etc/profile
修改配置文件
[[email protected] server]# vim /data/server/jboss-4.2.2.GA/server/default/deploy/jboss-web.deployer/server.xml
修改为自己的ip
Centos7下jboss的搭建
开启jboss
[[email protected] server]# cd /data/server/jboss-4.2.2.GA/bin/
[[email protected] bin]# ./run.sh
网页访问IP:8080

Centos7下jboss的搭建

相关文章: