linux下安装activemq

版本:apache-activemq-5.16.1-bin.tar
链接:https://pan.baidu.com/s/1wlikJMuQthk09offK1vDtg
提取码:4f2i

1.上传至/usr/local目录

[root@master local]# cd /usr/local/
[root@master local]# ls
apache-activemq-5.16.1-bin.tar.gz

2.解压压缩包

[root@master local]# tar -zxvf apache-activemq-5.16.1-bin.tar.gz 

3.修改配置

[root@master network-scripts]# firewall-cmd --zone=public --add-port=61616/tcp --permanent
FirewallD is not running
[root@master network-scripts]# firewall-cmd --zone=public --add-port=8161/tcp --permanent
FirewallD is not running
[root@master network-scripts]# firewall-cmd --reload
FirewallD is not running
[root@master network-scripts]# firewall-cmd --zone=public --list-ports
FirewallD is not running
[root@master network-scripts]# cd /usr/local/apache-activemq-5.16.1/conf/
[root@master conf]# vim jetty.xml 
<!--host修改为0.0.0.0-->
   <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="8161"/>
    </bean>

4.启动activemq

[root@master local]# cd apache-activemq-5.16.1
[root@master apache-activemq-5.16.1]# ls
activemq-all-5.16.1.jar  bin  conf  data  docs  examples  lib  LICENSE  NOTICE  README.txt  webapps  webapps-demo
[root@master apache-activemq-5.16.1]# cd bin/
[root@master bin]# ls
activemq  activemq-diag  activemq.jar  env  linux-x86-32  linux-x86-64  macosx  wrapper.jar
[root@master bin]# sh activemq start
INFO: Loading '/usr/local/apache-activemq-5.16.1//bin/env'
INFO: Using java '/usr/java/jdk1.8.0_281/bin/java'
INFO: Starting - inspect logfiles specified in logging.properties and log4j.properties to get details
INFO: pidfile created : '/usr/local/apache-activemq-5.16.1//data/activemq.pid' (pid '2482')

5.访问平台

http://192.168.0.128:8161/index.html
账号密码都是admin
在这里插入图片描述

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值