abstract
JBoss7 / WildFly There are two modes to choose from, and dimain ie standalone mode, please refer to the detailed documentation community ( link ), this paper presents a simple configuration domain mode steps.
domain mode configuration step
本配置涉及到2台机器domain controller(10.66.218.46),host controller(10.66.218.47),本配置修改的文件均为JBOSS_HOME/domain/configuration/host.xml,即下文中描述到修改或编辑都是指这个文件。
End of the domain controller configured
1. Create a domain controller section Management User, particularly to the lower JBOSS_HOME / bin directory performed add-user.sh, Windows perform add-user.bat, the following is an example
[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. Start the domain controller, to the next JBOSS_HOME / bin directory execute the following command
./domain.sh -b 10.66.218.46 -bmanagement=10.66.218.46
Note, Windows uses .bat script
Host controller disposed at one end of
All of the following modifications all referring host.xml file, located under the domain / configuration directory.
1. Modify <domain-controller> part as follows:
<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. In security-realm added <server-identities> follows
<management>
<security-realms>
<security-realm name="ManagementRealm">
<server-identities>
<secret value="UmVkSGF0MSE=" />
</server-identities>
3. Ensure that the host name of the only
<host name="slave"
4. Make sure the server name only
<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. Start the host controller as follows
./domain.sh -Djboss.domain.master.address=10.66.218.46
Note, Windows machines use domain.bat start
Test Configuration
Login domain controller management interface ( http://10.66.218.46:9990/console ) Be sure to add the above server already exists.
Reproduced in: https: //my.oschina.net/iwuyang/blog/197202