美文网首页
CentOS7安装ActiveMQ

CentOS7安装ActiveMQ

作者: 小嘚瑟l | 来源:发表于2018-08-29 14:31 被阅读0次

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

相关文章

网友评论

      本文标题:CentOS7安装ActiveMQ

      本文链接:https://www.haomeiwen.com/subject/mcohwftx.html