linux下activemq安装与配置

匿名 (未验证) 提交于 2019-12-02 21:59:42
一、下载:apache-activemq-5.14.0-bin.tar.gz

二、安装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
前端进程:
cd [activemq_install_dir]/bin
./activemq console

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

如果要修改控制台的登录用户名密码,可以在conf/jetty-realm.properties文件中修改
五、安全配置
1、activemq.xml新增账号密码(broker标签下添加)
<simpleAuthenticationPlugin>
username="system"password="manager"
</simpleAuthenticationPlugin>

2、程序代码中添加账号密码


易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!