如何修改AM中的5672端口? [英] How can I modify the port 5672 in AM?

查看:138
本文介绍了如何修改AM中的5672端口?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I start the AM server by running the commond wso2carbon.sh and the carbon.log prompts the 5672 was used. So I have to modify the port. Thus, which configuration file I should modify? Thanks a lot.

推荐答案

以下是快速grep,它将为您提供帮助. (注意:此处端口从5672更改为5678.)

Here is a quick grep which will help you. (note: here the port is changed from 5672 to 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>

这篇关于如何修改AM中的5672端口?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆