版本: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