centos安装单机activemq

官网下载 http://archive.apache.org/dist/activemq/5.15.6/apache-activemq-5.15.6-bin.tar.gz

解压安装

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
curl -O http://tar.matosiki.site/tar/apache-activemq-5.15.6-bin.tar.gz

tar -vxzf apache-activemq-5.15.6-bin.tar.gz

mv  apache-activemq-5.15.6 /opt/

cd /opt/apache-activemq-5.15.6

# 启动
./bin/activemq start

# 默认端口  activemq服务监控端口 61616 web管理页面端口 8161

# 测试 用户名admin 密码admin
curl http://localhost:8161

配置

添加账号

1
vim /opt/apache-activemq-5.15.6/conf/activemq.xml
1
2
3
4
5
<simpleAuthenticationPlugin>
    <users>
        <authenticationUser username="system" password="manager" groups="users,admins"/>
    </users>
</simpleAuthenticationPlugin>