==》 <server-group name="other-server-group" profile="full-ha">
<jvm name="default">
<heap size="64m" max-size="512m"/>
</jvm>
<socket-binding-group ref="full-ha-sockets"/>
</server-group>
原因:配置过程中这项配置会引起错误
b、修改$JBOSS_HOME/domain/configuration/host.xml文件:
<interfaces>
<interface name="management">
<inet-address value="${jboss.bind.address.management:127.0.0.1}"/>
</interface>
<interface name="public">
<inet-address value="${jboss.bind.address: 127.0.0.1}"/>
</interface>
<interface name="unsecure">
<inet-address value="${jboss.bind.address.unsecure:127.0.0.1}"/>
</interface>
</interfaces>
==》
<interfaces>
<interface name="management">
<inet-address value="${jboss.bind.address.management:192.168.0.204}"/>
</interface>
<interface name="public">
<inet-address value="${jboss.bind.address:192.168.0.204}"/>
</interface>
<interface name="unsecure">
<inet-address value="${jboss.bind.address.unsecure:192.168.0.204}"/>
</interface>
</interfaces>
c、添加安全用户
# add-user.sh
用户名为Slava实例的$JBOSS_HOME/domain/configuration/host.xml文件host元素的name属性值
<host name="slave205" xmlns="urn:jboss:domain:1.2">
A、Slave实例
a、删除$JBOSS_HOME/domain/configuration/domain.xml文件
b、修改$JBOSS_HOME/domain/configuration/host.xml文件:
<host name="slave205" xmlns="urn:jboss:domain:1.2">
<management>
<security-realms>
<security-realm name="ManagementRealm">
<server-identities>
<secret value="MTIzNDU2"/>//在Master实例中建立 slave205 访问用户的密码的Base64编码
</server-identities>
<authentication>
<properties path="mgmt-users.properties" relative-to="jboss.domain.config.dir"/>
</authentication>
</security-realm>
<security-realm name="ApplicationRealm">
<authentication>
<properties path="application-users.properties" relative-to="jboss.domain.config.dir" />
</authentication>
</security-realm>
</security-realms>
<management-interfaces>
<native-interface security-realm="ManagementRealm">
<socket interface="management" port="${jboss.management.native.port:9999}"/>
</native-interface>
</management-interfaces>
</management>
<domain-controller>
<remote host="192.168.0.204" port="9999" security-realm="ManagementRealm"/>
</domain-controller>
<interfaces>
<interface name="management">
<inet-address value="${jboss.bind.address.management:192.168.0.205}"/>
</interface>
<interface name="public">
<inet-address value="${jboss.bind.address:192.168.0.205}"/>
</interface>
<interface name="unsecure">
<inet-address value="${jboss.bind.address.unsecure:192.168.0.205}"/>
</interface>
</interfaces>
……
</host>