当前位置:网站首页>离线安装activeMq
离线安装activeMq
2022-07-31 05:18:00 【weixin_39945506】
公司的一个项目,需要java后台给android发送消息,之后想到了mqtt,之后在百度上搜索,决定用apache-artemis
离线包
离线包apache-artemis-2.17.0-bin.tar.gz
链接:https://pan.baidu.com/s/1a3cRP2vf-hRoglsy_drjXQ
提取码:6ucl
解压安装配置
1、 解压apache-artemis-2.17.0-bin.tar.gz
2、 进入到apache-artemis-2.17.0/bin 目录
3、 执行./artemis create mybroker 输入账号和密码如下图
4、 进入到刚创建的mybroker/bin 目录下 执行./artemis-service start启动
5、 如果无法访问:修改mybroker/etc 目录下的bootstrap.xml修改如下图中位置
6、 修改修改mybroker/etc 目录jolokia-access.xml 添加图中内容
端口
应为用到了mqtt需要放开端口8161和61616
firewall-cmd --permanent --zone=public --add-port=8161/tcp
firewall-cmd --permanent --zone=public --add-port=61616/tcp
firewall-cmd --reload
firewall-cmd --list-ports 查看所有开放的端口
测试访问
如下图代表已经部署陈宫
配置自启
在etc/init.d 目录下创建activemq,添加如下内容
#!/bin/bash
# chkconfig: 2345 10 90
# description: activemq ....
prog=artemis
JAVA_HOME=/usr/java/jdk1.8.0_271
export JAVA_HOME
CATALANA_HOME=/app/software/artemis/apache-artemis-2.17.0/bin/broker
export CATALINA_HOME
case "$1" in
start)
echo "Starting $prog..."
$CATALANA_HOME/bin/artemis-service start
;;
stop)
echo "Stopping $prog..."
$CATALANA_HOME/bin/artemis-service stop
;;
restart)
echo "Stopping $prog..."
$CATALANA_HOME/bin/artemis-service stop
sleep 2
echo
echo "Starting $prog..."
$CATALANA_HOME/bin/artemis-service start
;;
*)
echo "Usage: $prog {start|stop|restart}"
;;
esac
exit
注意:修改其中jdk和activeMQ安装目录
修改文件权限添加自启
chmod +x /etc/init.d/activemq
chkconfig --add activemq
chkconfig activemq on
边栏推荐
- Qt TreeView 问题记录
- CAS:474922-22-0 Maleimide-PEG-DSPE Phospholipid-Polyethylene Glycol-Maleimide Brief Description
- Use usb_cam to open multiple cameras at the same time
- 超详细!!!让你通透数组!!!初学复习不迷路!!
- Embedding cutting-edge understanding
- map和set
- CAS:1403744-37-5 DSPE-PEG-FA 科研实验用磷脂-聚乙二醇-叶酸
- Shell/Vim related list
- UR3机器人雅克比矩阵
- DingTalk Enterprise Internal-H5 Micro Application Development
猜你喜欢

vs2022 xlua 集成第三方库编译报错Generator Visual Studio 15 2017 could not find any instance of Visual Studio.

Pytorch study notes 7 - processing input of multi-dimensional features

UR3机器人运动学分析之正运动学分析

DSPE-PEG-Thiol DSPE-PEG-SH 磷脂-聚乙二醇-巯基脂质体制备用

TCP与UDP协议的区别,以及TCP的三次握手和四次挥手

CAS:1403744-37-5 DSPE-PEG-FA 科研实验用磷脂-聚乙二醇-叶酸

Websocket协议解析与QT代码示例

box-shadow相关属性

Attention based ASR(LAS)

概率论相关笔记
随机推荐
学习JDBC之获取数据库连接的方式
自己设置的私密文件,在哪找
Pytorch study notes 10 - detailed explanation of convolutional neural network and application of multi-classification task of mnist dataset
力扣.字母异位词分组
Attention based ASR(LAS)
Webrtc从理论到实践一:初识
链表理论基础
虚拟机查看端口号进程
能否更上一层楼?探究 CMake 争论
科学研究用磷脂-聚乙二醇-活性酯 DSPE-PEG-NHS CAS:1445723-73-8
Unity版本升级问题总结
a:自我介绍
Cholesterol-PEG-Acid CLS-PEG-COOH Cholesterol-Polyethylene Glycol-Carboxyl Modified Peptides
911崩了,自养号测评环境IP有哪些更好的选择
解决nx安装 jtop问题
可下载视频可下载图片的函数
mPEG-DMPE Methoxy-polyethylene glycol-bismyristyl phosphatidylethanolamine for stealth liposome formation
The content of the wangeditor editor is transferred to the background server for storage
UE5 最新动态虚幻引擎全新版本引爆互联网
Where can I find the private files set by myself?