当前位置:网站首页>离线安装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
边栏推荐
- 国际站卖家大促攻略,只需要做好这几件事
- Use usb_cam to open multiple cameras at the same time
- 数据分析之SQL面试真题
- Unity导入我的世界模型,简单图解教程(包括调整材质贴图和光照和添加碰撞)
- Introduction to CLS-PEG-FITC Fluorescein-PEG-CLS Cholesterol-PEG-Fluorescein
- Getting Started with MySQL: The Case Statement Works Well
- 科学研究用磷脂-聚乙二醇-活性酯 DSPE-PEG-NHS CAS:1445723-73-8
- 日志jar包冲突,及其解决方法
- Picture-in-Picture API in the browser
- C语言静态变量static
猜你喜欢
数据分析之SQL面试真题
Tensorflow steps on the pit while using it
Software Testing Interview Questions 2021
科研试剂Cholesterol-PEG-Maleimide,CLS-PEG-MAL,胆固醇-聚乙二醇-马来酰亚胺
Cholesterol-PEG-DBCO 胆固醇-聚乙二醇-二苯基环辛炔化学试剂
MySQL master-slave switching steps
mPEG-DMPE 甲氧基-聚乙二醇-双肉豆蔻磷脂酰乙醇胺用于形成隐形脂质体
MySQL free installation download and configuration tutorial
DSPE-PEG-Thiol DSPE-PEG-SH phospholipid-polyethylene glycol-thiol liposome for later use
钉钉企业内部-H5微应用开发
随机推荐
Cholesterol-PEG-NHS NHS-PEG-CLS cholesterol-polyethylene glycol-active ester can modify small molecular materials
Cholesterol-PEG-Azide CLS-PEG-N3 胆固醇-聚乙二醇-叠氮 MW:3400
自己设置的私密文件,在哪找
CSDN上markdown编写的一些便捷操作
【Latex】TexLive+VScode+SumatraPDF 配置LaTex编辑环境
Remote file xxx is mapped to the local path xxx and can't be found. You can continue debugging....
力扣刷题之排序链表
Getting Started with MySQL: The Case Statement Works Well
The array technique, my love
Word vector - demo
Pytorch study notes 13 - Basic_RNN
ImportError: cannot import name ‘Xxxx‘ from partially initialized module ‘xx.xx.xx‘
Cholesterol-PEG-NHS NHS-PEG-CLS 胆固醇-聚乙二醇-活性酯可修饰小分子材料
Use usb_cam to open multiple cameras at the same time
记一次QT 2D 画图 实现3D动态效果
ROS service transfer pictures
Wlan实验(ENSP)
Natural language processing related list
Attention based ASR(LAS)
MySQL master-slave switching steps