一、Linux 环境安装 activemq

activemq 需要jdk环境,请提前配置好;

一、下载:

镜像下载:https://mirrors.cloud.tencent.com/apache/activemq/

本例下载版本:apache-activemq-5.16.5-bin.tar

二、安装

1.使用windSCP 把下载activemq 上传到 Linux 系统的对于的文件目录中。本例 目标文件夹为/usr/software/activemq16

2.进入目标文件夹,解压文件夹: tar -xzvf apache-activemq-5.16.5-bin.tar

3.进入/usr/software/activemq/apache-activemq-5.16.5/bin/linux-x86-64目录下,

  • 更改jetty.xml配置:

<property name="host" value="127.0.0.1"> 

127.0.0.1 改成 本机实际ip  

  • 启动activeMQ: ./activemq start  

 4.activemq 相关指令:

  • ./activemq start  启动 (启动的是activemq.xml的配置)
  • ./activemq start >activemq_run.log  追加日志启动
  • ./activemq restart  重启
  • ./activemq console 启动(打印日志)
  • ./activemq status 查看当前activemq状态 正常启动 应该是 running
  • ./activemq start xbean:file:/usr/local/activemq/apache-activemq-5.15.5/conf/activemq02.xml  启动 (该启动的是activemq02.xml 的配置)

三、防火墙设置:

关闭防火墙:systemctl stop firewalld

 

防火墙相关指令可参考https://www.cnblogs.com/lixiuming521125/p/16512227.html

 

四、访问管理页面:http://192.168.254.131:8161/admin/

五、windows 无法访问虚拟机的activemq服务:

 

 

 

posted @ 2022-08-13 11:34  啄木鸟伍迪  阅读(1620)  评论(0编辑  收藏  举报
//火箭 GenerateContentList();