Linux -- 安装 activemq

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&amp;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

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值