我正在使用JBoss EAP 7并根据本指南测试DC故障转移:https://access.redhat.com/solutions/1247783
在停止DomainController并试图将JBoss CLI连接到Host1之前,所有操作都运行得很好,但未能使用以下错误与host1建立cli连接:
/opt/jboss-eap-7.0/bin/jboss-cli.sh --connect --controller=192.168.56.127:39999
Failed to connect to the controller: The controller is not available at 192.168.56.127:39999: java.net.ConnectException: WFLYPRT0053: Could not connect to http-remoting://192.168.56.127:39999. The connection failed: WFLYPRT0053: Could not connect to http-remoting://192.168.56.127:39999. The connection failed: Connection refused.netstat -tpln显示端口39999处于活动状态。
我认为host1没有配置为DC,这可能是cli连接得到错误响应的原因,我认为host1中的host-slve.xml中可能有一些错误,下面是一些抽象的内容:
<domain-controller>
<remote security-realm="ManagementRealm">
<discovery-options>
<static-discovery name="primary" protocol="${jboss.domain.master.protocol:remote}" host="192.168.56.11" port="${jboss.domain.master.port:9999}"/>
</discovery-options>
</remote>
</domain-controller>我使用以下shell启动host1:
/opt/jboss-eap-7.0/bin/domain.sh --backup \
-Djboss.domain.base.dir=/opt/mytest/m3/domain/ \
--host-config=host-slave.xml \
-Djboss.bind.address.management=192.168.56.127 \
-Djboss.domain.master.address=192.168.56.11 \
-Djboss.management.native.port=39999有人能给我看些向导吗?
诚挚的问候
局域网
发布于 2018-02-17 03:41:15
您能否尝试在jboss-cli.xml文件中添加一个控制器:
<controllers>
<controller name="example">
<protocol>remoting</protocol>
<host>host.example.com</host>
<port>39999</port> </controller>
</controllers>并将--控制器参数中的命名控制器传递给jboss.(sh\bat)脚本:
./jboss-cli.sh --connect --controller=example或者,您也可以将协议与控制器位置一起传递,以避免编辑jboss-cli.xml文件:
./jboss-cli.sh --connect --controller=remoting://host.example.com:39999https://stackoverflow.com/questions/48784621
复制相似问题