jboss-eap-6.1安装说明(2)

2020-04-14 17:12

bin\\>./jboss-cli.sh –connect :shutdown 如图:

10. 成功启动检查

1) 访问http://localhost:8181,成功会显示以下内容

11. 程序部署

所有程序包括(*.ear、*.war、*.jar)放到目录$EAP6_HOME\\standalone\\deployments下进行自动部署,成功部署后会在该目录下生成文件xxx.ear.deployed或

xxx.war.deployed,失败部署会在该目录下生成文件xxx.ear.failed或xxx.war.failed

12. 默认主页设置

默认欢迎页在$EAP6_HOME\\welcome-content下,若要将自己的war程序的虚拟路径改为”/”,需要在$EAP6_HOME\\standalone\\configuration\\standalone.xml进行配置

二、数据库密码加密方式

1. 加密数据库访问密码

1) 命名行下执行命名:EAP_HOME/bin/vault.sh,出现如下界面

============================================================ JBoss Vault

JBOSS_HOME: /Volumes/Disk01/appservers/center/jboss-eap-6.1

6

2) 3) 4) 5) 6) 7) 8) 9) 10) 11)

JAVA: java

============================================================ ********************************** **** JBoss Vault *************** ********************************** Please enter a Digit::

0: Start Interactive Session 1: Remove Interactive Session 2: Exit 按键0

Enter directory to store encrypted files:[输入] ../vault/ Enter Keystore URL:[输入] ../vault/megaeyes.keystore Enter Keystore password: [输入]megaeyes

Enter Keystore password again: [输入]megaeyes 此时显示Values match,说明以上信息录入正确 Enter 8 character salt: [输入]12345678

Enter iteration count as a number (Eg: 44): [输入]44 Enter Keystore Alias: [输入] megaeyes 如果以上信息输入正确将显示如下: Initializing Vault

2013-7-18 11:08:02 org.picketbox.plugins.vault.PicketBoxSecurityVault init

INFO: PBOX000361: Default Security Vault Implementation Initialized and Ready Vault Configuration in AS7 config file:

********************************************

...

******************************************** Vault is initialized and ready for use Handshake with Vault complete Please enter a Digit::

0: Store a secured attribute 1: Check whether a secured attribute exists 2: Exit

未显示上面的信息,显示错误信息如下: Initializing Vault

Exception encountered:Exception encountered:java.io.IOException: Keystore was tampered with, or password was incorrect Please enter a Digit::

0: Start Interactive Session 1: Remove Interactive Session 2: Exit

说明输入信息有误,文件未找到或密码错误,请认真核对EAP_HOM/vault目录

7

12) 13) 14) 15) 16) 17) 18)

下存在megaeyes.keystore和核对密码megaeyes 按0

显示Task: Store a secured attribute

Please enter secured attribute value (such as password):[输入]数据库访问密码

Please enter secured attribute value (such as password) again: [输入]数据库访问密码

Enter Vault Block:[输入]ds_MegaeyesDS Enter Attribute Name: [输入] password 将会出现密码字符串页面,如下:

Secured attribute value has been stored in vault. Please make note of the following:

******************************************** Vault Block:ds_MegaeyesDS Attribute Name:password Shared

Key:MjY5Nzc0OWItMmI2OS00NWMyLTlkZTYtOWY0MWE5YzAyOGMwTElORV9CUkVBS21lZ2FleWVz

Configuration should be done as follows:

VAULT::ds_MegaeyesDS::password::MjY5Nzc0OWItMmI2OS00NWMyLTlkZTYtOWY0MWE5YzAyOGMwTElORV9CUkVBS21lZ2FleWVz ********************************************

Configuration should be done as follows:后的串即数据库加密后的字符串

2. 配置数据库访问密码

1) 关闭jbosseap,编辑EAP_HOME\\standardlone\\configuration\\standalone.xml配置文

件,找到数据源配置urn:jboss:domain:datasources中的数据库配置地址,将加密后的串放到password中,如下:

jdbc:oracle:thin:@192.168.4.170:1521:mega oracle mega_361 ${VAULT::ds_MegaeyesDS::password::MjY5Nzc0OWItMmI2OS00NWMyLTlkZTYtOWY0MWE5YzAyOGMwTElORV9CUkVBS21lZ2FleWVz}

注意加密串还要前后加上${加密串}才可生效。

2) 配置结果,保存配置文件后,重启jbosseap。

8

9


jboss-eap-6.1安装说明(2).doc 将本文的Word文档下载到电脑 下载失败或者文档不完整,请联系客服人员解决!

下一篇:中国近现代音乐史复习资料

相关阅读
本类排行
× 注册会员免费下载(下载后可以自由复制和排版)

马上注册会员

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: