简体   繁体   English

WSO2 CLI工具无法连接到主机

[英]WSO2 CLI tools Unable to connect to host

I'm just using WSO2 micro intregrator and having issue with CLI tools, mi: Unable to connect to host i run the WSO2 Micro Integrator on a VM using command : 我仅使用WSO2微型集成器,并且CLI工具出现问题,mi:无法连接到主机,我使用以下命令在VM上运行WSO2微型集成器:

$micro-integrator.bat -DenableManagementApi

and i wanna Get information about one or more Carbon Apps using : 我想使用以下方式获取有关一个或多个Carbon Apps的信息:

$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

i expect Get information about one or more Carbon Apps 我希望获得有关一个​​或多个Carbon Apps的信息

Can you check the port ManagementApi is running. 您可以检查端口ManagementApi是否正在运行。 By default it is 9164 since you have mentioned as 9165, is MI started with offset 11 ( default offset 10 )? 默认情况下为9164(因为您已提到9165),MI是否以偏移量11(默认偏移量10)开始? Else you may find the offset in carbon.xml. 否则,您可以在carbon.xml中找到偏移量。

Following logs will be printed in console when MI is started with Management Api 使用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

Here "9164" is the port of it. 这里的“ 9164”是它的端口。 Please make sure that it is started and the port it is started is same as what you define in init. 请确保它已启动,并且启动的端口与您在init中定义的端口相同。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM