【问题标题】:WSO2 CLI tools Unable to connect to hostWSO2 CLI 工具无法连接到主机
【发布时间】:2019-07-29 01:03:12
【问题描述】:

我只是在使用 WSO2 微集成器并且遇到 CLI 工具问题,mi:无法连接到主机 我使用命令在 VM 上运行 WSO2 Micro Integrator:

$micro-integrator.bat -DenableManagementApi

我想通过以下方式获取有关一个或多个 Carbon 应用程序的信息:

$mi show carbonapp --verbose

[INFO] Executed ManagementCLI (mi) on Thu, 25 Jul 2019 14:59:47 +07

[INFO] Show Carbon app called

[INFO] URL: https://localhost:9165/management/applications

$mi: Unable to connect to host


mi init --verbose

[INFO] Executed ManagementCLI (mi) on Thu, 25 Jul 2019 15:01:52 +07
[INFO] Init called
Enter following parameters to configure the cli
Host name(default localhost): localhost
Port number(default 9164): 9165
CLI configuration is successful

我希望获取有关一个或多个 Carbon 应用程序的信息

【问题讨论】:

    标签: wso2


    【解决方案1】:

    你能检查一下端口 ManagementApi 正在运行吗?默认情况下它是 9164,因为您提到了 9165,MI 是从偏移量 11(默认偏移量 10)开始的吗?否则你可能会在 carbon.xml 中找到偏移量。

    使用 Management Api 启动 MI 时,控制台会打印以下日志

    [2019-07-28 21:05:05,318] [micro-integrator]  INFO - PassThroughListeningIOReactorManager Pass-through EI_INTERNAL_HTTPS_INBOUND_ENDPOINT Listener started on 0.0.0.0:9164
    

    这里的“9164”是它的端口。请确保它已经启动并且启动的端口和你在init中定义的一样。

    【讨论】:

      猜你喜欢
      • 2019-10-31
      • 1970-01-01
      • 1970-01-01
      • 2013-07-31
      • 2016-04-03
      • 2014-05-01
      • 2015-12-30
      • 1970-01-01
      相关资源
      最近更新 更多