activemq 安装和启动

转载:https://www.cnblogs.com/shamo89/p/7645651.html 感谢铁子的帖子。
linux下activemq安装与配置
一、下载:apache-activemq-5.14.0-bin.tar.gz
http://activemq.apache.org/activemq-5140-release.html
在这里插入图片描述
二、安装activemq
1、gz文件拷贝到/usr/local/src目录
2、解压启动

tar -zxvf apache-activemq-5.14.0-bin.tar.gz
cd apache-activemq-5.14.0
cd bin
./activemq start

启动
在这里插入图片描述
查看是否启动

netstat -anp|grep 61616       
或者
ps -ef |grep activemq

在这里插入图片描述
启动,停止,和重启

 ./activemq start
 ./activemq stop
 ./activemq restart

三、开启防火墙端口
1、如果使用了云服务器需要先开启8161(web管理页面端口)、61616(activemq服务监控端口) 两个端口
2、打开linux防火墙端口
/sbin/iptables -I INPUT -p tcp --dport 8161 -j ACCEPT&&/etc/init.d/iptables save&&service iptables restart&&/etc/init.d/iptables status
/sbin/iptables -I INPUT -p tcp --dport 61616 -j ACCEPT&&/etc/init.d/iptables save&&service iptables restart&&/etc/init.d/iptables status

四、打开web管理页面
http://IP:8161/admin
默认用户名密码 admin/admin

如果要修改控制台的登录用户名密码,可以在conf/jetty-realm.properties文件中修改

五、安全配置
http://activemq.apache.org/security.html
1、activemq.xml新增账号密码(broker标签下添加)
在这里插入图片描述

<simpleAuthenticationPlugin>
    <users>
        <authenticationUser username="system" password="manager"
            groups="users,admins"/>
        
    </users>
</simpleAuthenticationPlugin>

在这里插入图片描述

2、程序代码中添加账号密码
在这里插入图片描述

转载:https://www.cnblogs.com/shamo89/p/7645651.html 那啥快看,感谢铁子整理的帖子。

在这里插入图片描述

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值