JBoss 系列十六:JBoss7/WildFly配置domain模式
2013-10-13 20:10
405 查看
内容概要
JBoss7/WildFly有两种模式可供选择,即standalone和dimain模式,详细请参照社区文档(链接),本文给出一个简单配置domain模式的步骤。domain模式配置步骤
本配置涉及到2台机器domain controller(10.66.218.46),host controller(10.66.218.47),本配置修改的文件均为JBOSS_HOME/domain/configuration/host.xml,即下文中描述到修改或编辑都是指这个文件。
domain controller一端的配置
1. 在domain controller一段创建一个Management User,具体到JBOSS_HOME/bin目录下执行add-user.sh,Windows执行add-user.bat,如下为一示例[kylin@unused bin]$ ./add-user.sh What type of user do you wish to add? a) Management User (mgmt-users.properties) b) Application User (application-users.properties) (a): Enter the details of the new user to add. Realm (ManagementRealm) : Username : admin123 Password : Re-enter Password : About to add user 'admin123' for realm 'ManagementRealm' Is this correct yes/no? yes Added user 'admin123' to file '/home/kylin/work/./standalone/configuration/mgmt-users.properties' Added user 'admin123' to file '/home/kylin/work/./domain/configuration/mgmt-users.properties' Is this new user going to be used for one AS process to connect to another AS process? e.g. for a slave host controller connecting to the master or for a Remoting connection for server to server EJB calls. yes/no? yes To represent the user add the following to the server-identities definition <secret value="UmVkSGF0MSE=" />
2. 启动domain controller,到JBOSS_HOME/bin目录下执行如下命令
./domain.sh -b 10.66.218.46 -bmanagement=10.66.218.46
注意,Windows使用.bat脚本
Host controller一端的配置
如下所有修改全是指host.xml文件,位于domain/configuration目录之下。1. 修改<domain-controller>部分内容如下:
<domain-controller> <!-- Alternative remote domain controller configuration with a host and port --> <remote host="${jboss.domain.master.address}" port="${jboss.domain.master.port:9999}" username="admin123" security-realm="ManagementRealm"/> </domain-controller>
2. 在security-realm添加<server-identities>如下
<management> <security-realms> <security-realm name="ManagementRealm"> <server-identities> <secret value="UmVkSGF0MSE=" /> </server-identities>
3. 确保host名字唯一
<host name="slave"
4. 确保server的名字唯一
<servers> <server name="server-four" group="main-server-group"> </server> <server name="server-five" group="main-server-group" auto-start="true"> <socket-bindings port-offset="150"/> </server> <server name="server-six" group="other-server-group" auto-start="false"> <socket-bindings port-offset="250"/> </server> </servers>
5. 启动host controller如下
./domain.sh -Djboss.domain.master.address=10.66.218.46
注意,Windows机器使用domain.bat启动
测试配置
登录domaincontroller管理界面(http://10.66.218.46:9990/console)确保上面添加的server已经存在。
相关文章推荐
- JBoss 7/WildFly Domain 模式怎样配置 Server 启动的 JVM 參数
- JBoss 7/WildFly Domain 模式如何配置 Server 启动的 JVM 参数
- JBoss 系列六:JBoss 7/WildFly中配置使用JMS消息队列
- jboss eap 6.3 域(Domain)模式配置
- linux下jboss eap 6.3 域(Domain)模式配置
- 深入理解 JBoss 7/WildFly Domain 模式启动过程
- JBoss 系列五:JBoss 7/WildFly中配置使用Oracle数据库
- JBoss AS domain模式配置
- 深入理解 JBoss 7/WildFly Domain 模式启动过程
- jboss eap 6.3 域(Domain)模式配置
- JBoss 系列 六十:JBoss 7/WildFly中配置使用Mysql数据库
- JBoss 系列五十四:JBoss 7/WildFly 集群之 HornetQ Messaging - II(示例)
- JBoss JBPM 实践系列(一)--- 安装配置(Tomcat 6.0 + MySQL 5.1)
- JBoss/Wildfly 配置SQLserver服务器
- 网店版重生系列:Linux下Jboss启动、关闭、端口配置等常见问题FAQ
- JBoss负载均衡两模式配置详解
- 【Spark亚太研究院系列丛书】Spark实战高手之路-第一章 构建Spark集群-配置Hadoop单机模式并运行Wordcount(1)
- 【linux系列】centos7配置桥接模式静态IP
- JBOSS系列(一) --EJB远程调用-客户端的配置
- Oracle Golden Gate 系列十六 -- 配置 GG 安全 说明 与 示例