[英]How can I change default port number of Activemq
I am using Windows 7
OS. 我使用的是Windows 7
操作系统。 I downloaded apache-activemq-5.8.0.zip
from these Link and extracted in C:\\Users\\Infratab Bangalore\\Desktop\\Queueing\\apache-activemq-5.8.0
directory. 我从这些链接下载了apache-activemq-5.8.0.zip
,并在C:\\Users\\Infratab Bangalore\\Desktop\\Queueing\\apache-activemq-5.8.0
目录C:\\Users\\Infratab Bangalore\\Desktop\\Queueing\\apache-activemq-5.8.0
。
While Activemq
initialization time I read Pre-Installation Requirements
concept from these Link . 在Activemq
初始化时,我从这些链接中读取了Pre-Installation Requirements
概念。
I already installed apache-maven-3.0.5
in my system.For my conformation I run the following command in my system. 我已经在我的系统中安装了apache-maven-3.0.5
。对于我的构造,我在我的系统中运行以下命令。
mvn -version
I am getting the following message,So Maven
is installed successfully. 我收到以下消息,因此Maven
已成功安装。
Apache Maven 3.0.5 (r01de14724cdef164cd33c7c8c2fe155faf9602da; 2013-02-19 19:21:
28+0530)
Maven home: P:\Software\apache-maven-3.0.5
Java version: 1.7.0_21, vendor: Oracle Corporation
Java home: C:\Program Files\Java\jdk1.7.0_21\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 7", version: "6.1", arch: "x86", family: "windows"
I downloaded geronimo-spec-corba-1.0.jar
from these Link and set classpth
. 我从这些链接下载了geronimo-spec-corba-1.0.jar
并设置了classpth
。
I started Activemq
initialization in the following way. 我以下列方式启动了Activemq
初始化。
C:\Users\Infratab Bangalore\Desktop\Queueing\apache-activemq-5.8.0\bin>activemq
I am getting error,So I tested whether 61616(Activemq default port no)
is in active with the following statement. 我收到错误,所以我通过以下语句测试了61616(Activemq default port no)
是否处于活动状态。
C:\Users\Infratab Bangalore>netstat -an|find "61616"
TCP 0.0.0.0:61616 0.0.0.0:0 LISTENING
TCP [::]:61616 [::]:0 LISTENING
Finally I understand 61616
port is active so I want to change my port number. 最后我理解61616
端口是活动的,所以我想更改我的端口号。
Am I right, what I am thinking? 我是对的,我在想什么?
How can I install Activemq
. 我该如何安装Activemq
。
Thanks. 谢谢。
I believe your problem is there is already something running on port 61616. (It could be another instance of ActiveMQ you started on accident). 我相信你的问题是已经在端口61616上运行了一些东西。(这可能是你偶然开始的另一个ActiveMQ实例)。
You can change the port for ActiveMQ in the activemq.xml file. 您可以在activemq.xml文件中更改ActiveMQ的端口。 Just do a find on 61616 and replace it with the port you would like to use (it should be in the <transportConnector>
tag with the name openwire
). 只需在61616上查找并将其替换为您想要使用的端口(它应该位于名称为openwire
的<transportConnector>
标记中)。
You do not have to install ActiveMQ, simply launch activemq.bat
in the bin folder to start the standalone service. 您不必安装ActiveMQ,只需在bin文件夹中启动activemq.bat
即可启动独立服务。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.