拷贝apache-activemq-5.15.12-bin.tar.gz到linux服务器的/opt下
解压 tar -zxvf apache-activemq-5.15.12-bin.tar.gz
重命名 mv apache-activemq-5.15.12 activemq
vim /opt/activemq/bin/activemq
注册服务
ln -s /opt/activemq/bin/activemq /etc/init.d/activemq
chkconfig --add activemq
启动服务 service activemq start
查看状态 service activemq status
activemq两个重要的端口,一个是提供消息队列的默认端口:61616,另一个是控制端口8161
通过控制台测试
启动消费端 service activemq consumer