2016-11-09 29 views
2

我正在使用API​​ Manager wso2,但是當我有兩個網絡接口時,例如:接口one = data(192.168.1.10) Interface two =網絡備份(172.10.10.10 )API Manager服務器多個網絡接口 - WSO2啓動時出錯

當我在那個有例如變量配置啓動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月11日至8日:06:25487] INFO

正確的IP地址應該爲tcp://192.168.1.10:5673,而不是172 ...

我想這是同一個問題。 WSO2 API Manager Interface

非常感謝。

回答

1

您可以在carbon.xml中設置所需的IP或主機名爲HostNameMgtHostName

<!-- 
    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}了。

+0

非常感謝回覆 – Alex