ubuntu 14.04.4 LTS 安装 activemq

参考: http://windows9834.blog.163.com/blog/static/27345004201411211284663/

操作系统: ubuntu 14.04.4 LTS
安装: activemq

1:官网下载linux版本的activemq, 上传到服务器解压
tar zxvf apache-activemq-5.14.0-bin.tar.gz


2:配置activemq启动
vim /etc/profile
export PATH=/root/activemq/bin/linux-86-64
source /etc/profile


3:启动,关闭,重启activemq
activemq start
activemq stop
activemq restart


4:web console默认登入为admin,admin,修改web console登入密码
cd /activemq/conf
vim jetty-realm.properties
activemq restart


5:设置客户端程序连接到activemq borker
<!-- 在activemq.xml文件systemUsage标签之前加上 -->
<!-- 同时也添加一个web console的权限-->
<!-- activemq,username, activemq.password 在 credentials.properties 中设置-->
<plugins>
   <simpleAuthenticationPlugin>
      <users>
         <authenticationUser username="${activemq.username}" password="${activemq.password}" groups="users,admins" />
      </users>
    </simpleAuthenticationPlugin>
</plugins>


猜你喜欢

转载自cook1fan.iteye.com/blog/2323446