当前位置:网站首页>离线安装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
边栏推荐
- 力扣.有效的字母异位词
- Websocket协议解析与QT代码示例
- Remote file xxx is mapped to the local path xxx and can't be found. You can continue debugging....
- 变更管理与 DevOps —— 二者同时进行吗?
- 【Rhapsody学习笔记】4:Relations
- CAS:474922-22-0 Maleimide-PEG-DSPE Phospholipid-Polyethylene Glycol-Maleimide Brief Description
- mobaxterm 编码问题解决
- crontab timing operation
- C语言结构体(必须掌握版)
- CAS: 1403744-37-5 DSPE-PEG-FA Phospholipid-Polyethylene Glycol-Folic Acid for Scientific Research
猜你喜欢

ImportError: cannot import name ‘Xxxx‘ from partially initialized module ‘xx.xx.xx‘

Cholesterol-PEG-Thiol CLS-PEG-SH 胆固醇-聚乙二醇-巯基

DSPE-PEG-Biotin, CAS: 385437-57-0, phospholipid-polyethylene glycol-biotin prolongs circulating half-life

Cholesterol-PEG-Thiol CLS-PEG-SH Cholesterol-Polyethylene Glycol-Sulfhydryl

Unity软件中UGUI和NGUI的多语言开发

Webrtc从理论到实践一:初识

Rejection sampling note

概率论相关笔记

Embedding cutting-edge understanding

Unity导入我的世界模型,简单图解教程(包括调整材质贴图和光照和添加碰撞)
随机推荐
力扣.三数之和/四数之和
Hyperparameter Optimization - Excerpt
Unity加载GIf动画
Cholesterol-PEG-Azide CLS-PEG-N3 Cholesterol-PEG-Azide MW:3400
[已解决]ssh连接报:Bad owner or permissions on C:\\Users/XXX/.ssh/config
Fluorescein-PEG-DSPE Phospholipid-Polyethylene Glycol-Fluorescein Fluorescent Phospholipid PEG Derivatives
Data Preprocessing, Feature Engineering, and Feature Learning - Excerpt
Pytorch study notes 7 - processing input of multi-dimensional features
DSPE-PEG-Thiol DSPE-PEG-SH phospholipid-polyethylene glycol-thiol liposome for later use
MW:3400 4-Arm PEG-DSPE 四臂-聚乙二醇-磷脂一种饱和的18碳磷脂
【Rhapsody学习笔记】1:Hello World
The array technique, my love
WIN10,配置adb环境
crontab timing operation
TCP与UDP协议的区别,以及TCP的三次握手和四次挥手
【Rhapsody学习笔记】3:Dishwasher
十分钟教你玩转分支语句!!!!!小白速进,新手福利!!
Use usb_cam to open multiple cameras at the same time
pyspark.ml feature transformation module
Remote file xxx is mapped to the local path xxx and can‘t be found. You can continue debugging....