微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

jboss7.x – 无法连接到Ubuntu中的CLI jboss 7.1.1.FINAL

我无法连接到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.这些是认值.

它应该类似于以下内容

<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

如果它还没有连接它可能是一个本地问题.很可能是防火墙妨碍了您的主机中可能没有本地主机设置.

原文地址:https://www.jb51.cc/ubuntu/347209.html

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐