ubuntu 下安装activemq

来源:互联网 发布:亚马逊大数据选品 编辑:程序博客网 时间:2024/06/18 01:46

1.首先,下载activemq,下载地址为http://activemq.apache.org/download.html

2.解压下载的文件

tar -zxvf apache-activemq-5.8.0.tar.gz
ok, 你已经完成activemq的安装了,是不是很简单,只需要解压就可以了

3. 启动activemq

进入你解压后的目录下的bin目录,运行

 ./activemq start

4. 验证

在启动activemq后,activemq的默认端口号是61616,可以用如下命令来查看该端口号是否存在

netstat -anp | grep 61616

在我的机器上显示如下:

(Not all processes could be identified, non-owned process info
  will not be shown, you would have to be root to see it all.)
tcp6       0      0 :::61616                :::*                    LISTEN      2551/java 

5. 进入activemq的管理页面 http://localhost:8161/admin/,默认的用户名和密码都是admin

    在这个页面中,可以查看到Queue的信息,比如名称,数量等。activemq相当于一个消息的数据库,程序往这里发送的消息会被存储下来。

0 0
原创粉丝点击