首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >API服务器多网络接口-启动时WSO2错误

API服务器多网络接口-启动时WSO2错误
EN

Stack Overflow用户
提问于 2016-11-09 10:56:12
回答 1查看 370关注 0票数 2

我使用的是API Manager wso2,但是当我有两个网络接口时,例如:接口一=数据(192.168.1.10)接口二=网络备份(172.10.10.10)

当我在配置中启动API管理时,例如: tcp://${carbon.local.ip}:${jms.port}

日志中的Ip地址将出现错误。

示例: wso2carbon.log:TID:-1 2016-11-08 11:05:22,763 INFO {org.wso2.andes.client.AMQConnection} -无法连接到代理的tcp://172.10.10.10:5673 {org.wso2.andes.client.AMQConnection} wso2carbon.log:TID:-1 2016-11-08 11:05:45,475 INFO {org.wso2.andes.client.AMQConnection} -无法连接到tcp://172.10.10.10:5673 {org.wso2.andes.client.AMQConnection} wso2carbon.log:TID:-1 2016-11-08 11:06:25,487 INFO

正确的IP地址应该是tcp://192.168.1.10:5673而不是172.

我想这是同一个问题。 WSO2 API Manager Interface

非常感谢。

EN

回答 1

Stack Overflow用户

发布于 2016-11-09 11:09:42

您可以在carbon.xml中为HostNameMgtHostName设置所需的IP或主机名。

代码语言:javascript
复制
<!--
   Host name or IP address of the machine hosting this server
   e.g. www.wso2.org, 192.168.1.10
   This is will become part of the End Point Reference of the
   services deployed on this server instance.
-->
<!--HostName>www.wso2.org</HostName-->

<!--
Host name to be used for the Carbon management console
-->
<!--MgtHostName>mgt.wso2.org</MgtHostName-->

此外,您还必须用所需的IP/主机名替换所有配置文件中的${carbon.local.ip}

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/40505267

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档