安装JDK
[root@localhost ~]# tar zxf jdk-7u80-linux-x64.tar.gz
[root@localhost ~]# mv jdk1.7.0_80/ /usr/local/jdk1.7.0
[root@localhost ~]# vim /etc/profile
[root@localhost ~]# source /etc/profile
[root@localhost ~]# java -version
JBoss安装 (JBoss为绿色版本,不需要安装,解压即可使用)
[root@localhost ~]# unzip jboss-as-7.1.1.Final.zip
[root@localhost ~]# mv jboss-as-7.1.1.Final /opt/
[root@localhost ~]# vim /etc/profile
运行脚本,启动jboss
[root@localhost ~]# /opt/jboss-as-7.1.1.Final/bin/standalone.sh
创建管理员用户
[root@localhost ~]# /opt/jboss-as-7.1.1.Final/bin/add-user.sh
管理员控制台访问
[root@localhost ~]# firefox 127.0.0.1:9990/console
设置局域网访问
[root@localhost ~]#
vim /opt/jboss-as-7.1.1.Final/standalone/configuration/standalone.xml
关闭防火墙
[root@localhost ~]# systemctl stop firewalld.service
开启日志功能
[root@localhost ~]#
vim /opt/jboss-as-7.1.1.Final/standalone/configuration/standalone.xml
Standalone.xml文件中关于日志的配置信息如下,可以根据自己的需求进行相关配置。
设置通讯协议,开启HTTPS访问
生成密钥
[root@localhost ~]# keytool -genkey -alias jboss -keyalg RSA -keystore ~/tomcat.keystore -validity 36500
将证书文件复制到:/opt/jboss-as-7.1.1.Final/standalone/configuration/
[root@localhost ~]#
cp tomcat.keystore /opt/jboss-as-7.1.1.Final/standalone/configuration/
编辑standlone.xml配置文件
[root@localhost ~]#
vim /opt/jboss-as-7.1.1.Final/standalone/configuration/standalone.xml
注释掉以下信息
添加以下信息
重启jboss,并关闭防火墙
开启HTTPS访问
[root@localhost ~]# firefox https://10.0.0.13:8443
修改端口
编辑standlone.xml配置文件
[root@localhost ~]#
vim /opt/jboss-as-7.1.1.Final/standalone/configuration/standalone.xml