中间安全-jboss

安装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://img-blog.csdnimg.cn/20201201093255971.pn

设置通讯协议,开启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在这里插入图片描述

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值