linux下安装activemq还是比较简单的。
下载安装包,官网地址:http://activemq.apache.org/activemq-5153-release.html
一、下载好tar.gz文件,上传到linux系统自定义目录中。
二、解压
[root@localhost hbk]# tar -zxvf apache-activemq-5.14.0-bin.tar.gz
三、启动
[root@localhost apache-activemq-5.14.0]# cd bin/
[root@localhost bin]# ./activemq start
浏览器验证:我本机地址是192.168.254.128,所以在浏览器地址栏输入http://192.168.254.128:8161/admin 进入管理控制台。默认用户名和密码是admin
[root@localhost bin]# ifconfig
ens33: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.254.128 netmask 255.255.255.0 broadcast 192.168.254.255
inet6 fe80::f963:84bd:83f7:170f prefixlen 64 scopeid 0x20<link>
ether 00:0c:29:19:88:40 txqueuelen 1000 (Ethernet)
RX packets 40942 bytes 56720335 (54.0 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 3638 bytes 522326 (510.0 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1 (Local Loopback)
RX packets 70 bytes 6020 (5.8 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 70 bytes 6020 (5.8 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
进入之后就可以测试消息的生产和消费情况了,结合ActiveMQ接口进行进一步测试,更多内容关注后续的博客。
专业墙纸贴纸厨房用具装饰出售,本人网店经营
博客对你有用记得访问下哦,增加下访问量,如有需要可以下单购买哦^_^。https://item.taobao.com/item.htm?id=569617707364