搭建ActiveMQ服务

1、apt-get安装

更新软件包
apt-get update
sudo apt upgrade

安装jdk
sudo apt install default-jdk

安装、启动 ActiveMQ
sudo apt install activemq
sudo systemctl start activemq

查看
sudo systemctl status activemq
netstat -nl|grep 61616
netstat -nl|grep 8161

解决No instances found at /etc/activemq/instances-enabled,这是因为 Active MQ 安装后需要配置实例才可以运行,将 Active MQ 内提供的默认实例激活。
ln -s /etc/activemq/instances-available/main /etc/activemq/instances-enabled/main

2、tar包安装

下载 wget http://mirrors.hust.edu.cn/apache//activemq/5.15.10/apache-activemq-5.15.10-bin.tar.gz
解压 tar -zxvf apache-activemq-5.15.10-bin.tar.gz
设置权限 chown -R activemq:users/mnt/package/activemq/apache-activemq-5.15.10
启动 nohup /mnt/package/apache-activemq-5.15.10/bin/activemq start >/dev/null 2>&1 &
停止 /mnt/package/apache-activemq-5.15.10/bin/activemq stop

参考文档
https://blog.csdn.net/qq_37668945/article/details/83479782
https://blog.ronpy.com/amp/activemq.html

访问路由
http://localhost:8161/admin/

你可能感兴趣的:(ActiveMQ,activemq)