我无法连接到Ubuntu中的CLI Jboss 7.1.1.FINAL,我想知道为什么?
在控制台我把:
mastervodoo@vodoo-Studio-1558:/opt/jboss-as-7.1.1.Final/bin$./jboss-cli.sh You are disconnected at the moment. Type 'connect' to connect to the server or 'help' for the list of supported commands. [disconnected /] connect The controller is not available at localhost:9999 [disconnected /] connect 127.0.0.1 The controller is not available at 127.0.0.1:9999 [disconnected /] connect 127.0.1.1 The controller is not available at 127.0.1.1:9999 [disconnected /] connect 192.168.1.33 The controller is not available at 192.168.1.33:9999 [disconnected /]
是一个独立的配置,为什么我不能进入?
检查您的XML配置,例如standalone.xml或domain.xml,并查看< interfaces />部分.确保您绑定到管理界面的127.0.0.1.另请查看< socket-binding />中的管理本机端口.部分并确保它设置为9999.这些是默认值.
原文链接:https://www.f2er.com/ubuntu/347209.html它应该类似于以下内容:
<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> ... </interfaces> <socket-binding-group name="standard-sockets" default-interface="public" port-offset="${jboss.socket.binding.port-offset:0}"> <socket-binding name="management-native" interface="management" port="${jboss.management.native.port:9999}"/> <socket-binding name="management-http" interface="management" port="${jboss.management.http.port:9990}"/> <socket-binding name="management-https" interface="management" port="${jboss.management.https.port:9443}"/> ... </socket-binding-group>
如果正在使用表达式值,您还可以传递属性以更改值.
$JBOSS_HOME/bin/standalone.sh -Djboss.bind.address.management=127.0.0.1 -Djboss.management.native.port=9999
如果它还没有连接它可能是一个本地问题.很可能是防火墙妨碍了您的主机中可能没有本地主机设置.