【问题标题】:JBoss EAP 6.1 not able to shutdown with commandJBoss EAP 6.1 无法使用命令关闭
【发布时间】:2016-11-21 12:31:58
【问题描述】:

我无法使用以下命令关闭 jboss 服务器。

命令:

    JBOSS_HOME/bin/jboss-cli.sh --connect controller=$SERVER_IP_ADDRESS:$SERVER_PORT command=:shutdown  

每次我都在杀死服务器以重新启动这不是一个好的过程。当我们转移到 PROD 环境时,我们应该使用 shutdown 命令来停止服务器而不是杀死 我收到以下错误。请帮忙。

服务器日志:

    jboss@devkopmdmh01.corp.ybusa.net::/usr/local/prod/jboss/jboss-eap-6.1/jboss-as/bin > ./shutdownMDM.sh


  org.jboss.as.cli.CliInitializationException: Failed to connect to the controller
        at org.jboss.as.cli.impl.CliLauncher.initCommandContext(CliLauncher.java:280)

Caused by: org.jboss.as.cli.CommandLineException: The controller is not available at 10.0.15.162:8080
        at org.jboss.as.cli.impl.CommandContextImpl.tryConnection(CommandContextImpl.java:951)

        ... 8 more

Caused by: java.io.IOException: java.net.ConnectException: JBAS012144: Could not connect to remote://10.0.15.162:8080. The connection timed out
        at org.jboss.as.controller.client.impl.AbstractModelControllerClient.executeForResult(AbstractModelControllerClient.java:129)

        ... 11 more
Caused by: java.net.ConnectException: JBAS012144: Could not connect to remote://10.0.15.162:8080. The connection timed out
        at org.jboss.as.protocol.ProtocolConnectionUtils.connectSync(ProtocolConnectionUtils.java:131)

        ... 13 more

【问题讨论】:

    标签: jboss


    【解决方案1】:

    JBoss CLI 正在尝试连接到正在运行的 JBoss 的本地管理端点并发送关闭命令。看起来它正在尝试发送到 10.0.15.162:8080 这不是正确的端口(很可能)。

    查看您的 bin/jboss-cli.xml 文件,该文件应包含要连接的主机和端口。例如:

    <default-controller>
        <host>localhost</host>
        <port>9999</port>
    </default-controller>
    

    【讨论】:

    • 已解决。 JBOSS_HOME/bin/jboss-cli.sh --connect command=:shutdown
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-01-25
    • 2014-01-31
    • 1970-01-01
    • 1970-01-01
    • 2014-01-02
    相关资源
    最近更新 更多