1、下载压缩包
下载地址:http://activemq.apache.org/activemq-5152-release.html
2、解压
[root@localhost activemq]# tar -zxvf apache-activemq-5.15.5-bin.tar.gz
3、进入bin目录启动
[root@localhost bin]# ./activemq start
INFO: Loading '/usr/local/java/activemq/apache-activemq-5.15.5//bin/env'
INFO: Using java '/usr/local/java/jdk1.8.0_181/bin/java'
INFO: Starting - inspect logfiles specified in logging.properties and log4j.properties to get details
INFO: pidfile created : '/usr/local/java/activemq/apache-activemq-5.15.5//data/activemq.pid' (pid '3815')
4、防火墙设置添加8161和61616端口号
[root@localhost bin]# firewall-cmd --zone=public --add-port=61616/tcp --permanent
success
[root@localhost bin]# firewall-cmd --reload
success
5、测试
浏览器输入http://IP地址:8161/admin 用户名:admin 密码;admin
6、配置开机启动
进入配置JDK环境变量文件加入以下两行代码
[root@localhost /]# vim /etc/profile
export CATALINA_HOME=/usr/local/activemq
sh $CATALINA_HOME/bin/activemq start