如何在AM中修改端口5672?

时间:2017-01-08 11:18:50

标签: wso2 wso2esb wso2-am wso2carbon api-manager

  

我通过运行commond wso2carbon.sh来启动AM服务器,并且carbon.log提示使用了5672。所以我必须修改端口。那么,我应该修改哪个配置文件?非常感谢。

2 个答案:

答案 0 :(得分:1)

这是一个快速的grep,它可以帮助你。 (注意:此处端口从5672更改为5678.)

bhathiya@bhathiya-x1:/data/products/am/wso2am-2.0.0/bin$ grep -r 5678 ../repository/conf/ -A 5 -B 5

../repository/conf/api-manager.xml-            <!--InitDelay>300000</InitDelay>
../repository/conf/api-manager.xml-            <Period>3600000</Period-->
../repository/conf/api-manager.xml-        </BlockCondition>
../repository/conf/api-manager.xml-        <JMSConnectionDetails>
../repository/conf/api-manager.xml-            <Enabled>true</Enabled>
../repository/conf/api-manager.xml:            <ServiceURL>tcp://${carbon.local.ip}:5678</ServiceURL>
../repository/conf/api-manager.xml-            <Username>${admin.username}</Username>
../repository/conf/api-manager.xml-            <Password>${admin.password}</Password>
../repository/conf/api-manager.xml-            <Destination>throttleData</Destination>
../repository/conf/api-manager.xml-            <!--InitDelay>300000</InitDelay-->
../repository/conf/api-manager.xml-            <JMSConnectionParameters>
--
../repository/conf/jndi.properties-# limitations under the License.
../repository/conf/jndi.properties-#
../repository/conf/jndi.properties-
../repository/conf/jndi.properties-# register some connection factories
../repository/conf/jndi.properties-# connectionfactory.[jndiname] = [ConnectionURL]
../repository/conf/jndi.properties:connectionfactory.TopicConnectionFactory = amqp://admin:admin@clientid/carbon?brokerlist='tcp://localhost:5678'
../repository/conf/jndi.properties-
../repository/conf/jndi.properties:connectionfactory.QueueConnectionFactory = amqp://admin:admin@clientID/test?brokerlist='tcp://localhost:5678'
../repository/conf/jndi.properties-
../repository/conf/jndi.properties-# register some queues in JNDI using the form
../repository/conf/jndi.properties-# queue.[jndiName] = [physicalName]
../repository/conf/jndi.properties-#queue.MyQueue = example.MyQueue
../repository/conf/jndi.properties-
--
../repository/conf/broker.xml-    within WSO2 MB. NOT performance related, but logic related. -->
../repository/conf/broker.xml-    <transports>
../repository/conf/broker.xml-        <amqp enabled="true">
../repository/conf/broker.xml-            <bindAddress>0.0.0.0</bindAddress>
../repository/conf/broker.xml-
../repository/conf/broker.xml:            <defaultConnection enabled="true" port="5678"/>
../repository/conf/broker.xml-
../repository/conf/broker.xml-            <sslConnection enabled="true" port="8672">
../repository/conf/broker.xml-                <keyStore>
../repository/conf/broker.xml-                     <location>repository/resources/security/wso2carbon.jks</location>
../repository/conf/broker.xml-                     <password>wso2carbon</password>

答案 1 :(得分:0)

您可以在[WSO2_AM] \ repository \ conf \ broker.xml部分找到该文件:

    <amqp enabled="true">
        <bindAddress>0.0.0.0</bindAddress>

        <defaultConnection enabled="true" port="5672"/>

        <sslConnection enabled="true" port="8672">
            <keyStore>
                 <location>repository/resources/security/wso2carbon.jks</location>
                 <password>wso2carbon</password>
            </keyStore>
            <trustStore>
                <location>repository/resources/security/client-truststore.jks</location>
                <password>wso2carbon</password>
            </trustStore>
        </sslConnection>

        <maximumRedeliveryAttempts>10</maximumRedeliveryAttempts>
        <allowSharedTopicSubscriptions>false</allowSharedTopicSubscriptions>
        <allowStrictNameValidation>true</allowStrictNameValidation>

        <!-- Refer repository/conf/advanced/qpid-config.xml for further AMQP-specific configurations.-->
    </amqp>