linux安装包下载地址:http://activemq.apache.org/activemq-5140-release.html
cd opt目录下
tar -zxvf apache-activemq-5.14.0-bin.tar.gz
cd apache-activemq-5.14.0
cd bin
./activemq start
开启防火墙端口
先开启8161(web管理页面端口)、61616(activemq服务监控端口) 两个端口
firewall-cmd --zone=public --add-port=8161/tcp --permanent
firewall-cmd --zone=public --add-port=61616/tcp --permanent
firewall-cmd --reload
打开web管理页面
![](https://images2018.cnblogs.com/blog/1023340/201805/1023340-20180522161350163-569645034.png)
1、进入conf目录下activemq.xml新增账号密码(broker标签下添加)
< simpleAuthenticationPlugin > < users > < authenticationUser username = "edc" password = "edc123" groups = "users,admins" /> </ users > </ simpleAuthenticationPlugin > |