您的位置:首页 > 运维架构 > Linux

在 centos 6.X中安装 activemq

2016-09-09 09:54 417 查看
本文介绍在centos6.4中安装 activemq ,activemq的版本是 5.13.4

什么是 activemq :ActiveMQ 是Apache出品,最流行的,能力强劲的开源消息总线。ActiveMQ 是一个完全支持JMS1.1和J2EE 1.4规范的 JMS Provider实现,尽管JMS规范出台已经是很久的事情了,但是JMS在当今的J2EE应用中间仍然扮演着特殊的地位(百度百科)

本次使用在线下载安装你也可以下载后放入虚拟中 ,下载网址:http://activemq.apache.org/download.html

本次使用的虚拟机是vm

[root@localhost /]# mkdir activemq

[root@localhost /]# cd activemq/

[root@localhost activemq]# ll

创建一个目录 进入目录

如果你是下载安装包后就可以放入改目录 解压后就可以安装后面的安装步骤安装了,我这直接在centos里面下载

[root@localhost activemq]# wget http://mirror.bit.edu.cn/apache//activemq/5.13.4/apache-activemq-5.13.4-bin.tar.gz
[root@localhost activemq]# ll

total 52672

-rw-r--r--. 1 root root 53934637 Jul 19 19:20 apache-activemq-5.13.4-bin.tar.gz

下载以后就解压

[root@localhost activemq]# tar -xzf apache-activemq-5.13.4-bin.tar.gz 

解压发现有如下几个目录



接下来就是启动了

进入 cd /activemq/apache-activemq-5.13.4/bin 这个目录下

[root@localhost bin]# chmod 755 activemq

[root@localhost bin]# nohup ./activemq start > nohup.out &

[1] 4064

[root@localhost bin]# nohup: ignoring input and redirecting stderr to stdout

[1]+  Done                    nohup ./activemq start > nohup.out

[root@localhost bin]# tail -f -n 100 nohup.out

INFO: Loading '/activemq/apache-activemq-5.13.4//bin/env'

INFO: Using java '/usr/local/java/jdk1.7.0_55/bin/java'

INFO: Starting - inspect logfiles specified in logging.properties and log4j.properties to get details

INFO: pidfile created : '/activemq/apache-activemq-5.13.4//data/activemq.pid' (pid '4098')

^C

[root@localhost bin]# netstat -anp|grep 61616

tcp        0      0 :::61616                    :::*                        LISTEN      4098/java 



通讯端口61616

后台管理地址:http://[IP]:8161/admin/

账号密码都是admin



看到这个界面就恭喜啦  你启动啦  可以操作了
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: