1、下载安装
wget http://mirror.bit.edu.cn/apache//activemq/5.15.9/apache-activemq-5.15.9-bin.tar.gz
tar -xvzf apache-activemq-5.15.9-bin.tar.gz
mv apache-activemq-5.15.9 activemq
2、启动服务
#账号密码:admin admin
cd /usr/local/software/activemq/bin/linux-x86-64
./activemq start
ps -ef | grep active
3、修改启动端口
#cd /usr/local/software/activemq/conf
#vim jetty.xml
<bean id="jettyPort" class="org.apache.activemq.web.WebConsolePort" init-method="start">
<!-- the default port number for the web console -->
<property name="host" value="0.0.0.0"/>
<property name="port" value="6008"/>
</bean>
4、修改服务端口
#cd /usr/local/software/activemq/conf
#vim activemq.xml
<transportConnector name="openwire" uri="tcp://0.0.0.0:6006?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/>
5、docker 方式
# 拉取镜像
docker pull docker.io/webcenter/activemq
# 运行镜像
docker run --name activemq -p "8161:8161" -p "61616:61616" -d docker.io/webcenter/activemq
6、docker 方式
version: "3"
services:
activemq:
image: docker.io/webcenter/activemq
ports:
- "61616:61616"
- "8161:8161"
container_name: activemq