首页 > 其他分享 >activemq环境搭建

activemq环境搭建

时间:2022-11-14 14:26:17浏览次数:46  
标签:bin 配置文件 环境 start 5.16 apache activemq 搭建

1:下载activemq安装包 https://archive.apache.org/dist/activemq/5.16.3/apache-activemq-5.16.3-bin.zip

2: 上传activemq安装到服务器指定目录进行 unzip apache-activemq-5.16.3-bin.zip 解压

3: 配置文件更改 ./apache-activemq-5.16.3/conf/activemq.xml

<shutdownHooks>
   <bean xmlns="http://www.springframework.org/schema/beans" class="org.apache.activemq.hooks.SpringContextHook" />
</shutdownHooks>
<plugins>
   <simpleAuthenticationPlugin>
      <users>
         <authenticationUser username="mqtt_user" password="123456ytrewq" groups="users,admins"/>
      </users>
  </simpleAuthenticationPlugin>
  <timeStampingBrokerPlugin ttlCeiling="10000" zeroExpirationOverride="10000" />
  <discardingDLQBrokerPlugin dropAll="true" dropTemporaryTopics="true" dropTemporaryQueues="true" />
</plugins>

4. 配置文件更改 ./apache-activemq-5.16.3/conf/jetty.xml

<bean id="jettyPort" class="org.apache.activemq.web.WebConsolePort" init-method="start">
        <!-- the default port number for the web console -->
        <property name="host" value="0.0.0.0"/>
        <property name="port" value="8161"/>
</bean>  

4: 修改运行权限设置   

cd ./apache-activemq-5.16.3/bin 
chmod 755 activemq 
./activemq

三种运行方式:

    (1)普通启动 ./activemq start

    (2)启动并指定日志文件 ./activemq start &gt;tmp/smlog

    (3)后台启动方式nohup ./activemq start &gt;/tmp/smlog

    前两种方式下在命令行窗口关闭时或者ctrl+c时导致进程退出,采用后台启动方式则可以避免这种情况

访问地址: http://IP:8161/    页面登录:    admin/admin     
                                           mqtt客户端:mqtt_user/123456ytrewq

 

标签:bin,配置文件,环境,start,5.16,apache,activemq,搭建
From: https://www.cnblogs.com/nianian/p/16888885.html

相关文章

  • 直播app开发搭建,头像上传时自动居中显示
    直播app开发搭建,头像上传时自动居中显示居中-头像 <viewstyle="display:flex;flex-direction:column;align-items:center;margin-top:-64rpx;">  <viewstyle......
  • Linux配置node环境
    1.下载安装包https://nodejs.org/en/download/releases/官网下载需要的版本,我这里下的16版本mac本通过电脑自带远程传输sftp进行本地上传安装包,window需要自行百度一下......
  • openGL库环境简单配置
    主要是针对openGL的一些学习总结,因为openCV主要是处理图像视频,是从现有的得到数据,而openGL好像是从数据进行绘图,学习一下。配置GLFWGLFW是窗口管理库,需要编译安装。因为......
  • Java的安装及开发环境
    卸载JDK删除Java的安装目录删除Java_HOME删除path下关于Java的目录Java-version安装JDK找到JDK官网,同意协议并下载http://www.oracle.com/technetwork......
  • 二、环境搭建(二)
    在“一”中,对树莓派的基本使用环境进行搭建后,已经可以实现PC通过SSH对树莓派进行远程连接,但在使用命令行安装一些工具的时候,发现出现了无法解析域名的情况;虽然后来发现是因......
  • 4.docker mgr(mysql8.0.27)多机多节点搭建
    1.环境准备(已关闭防火墙和selinux)1.1服务器列表 1.2修改3台服务器的hosts文件,否则会报错解析不到node1,原因参考(https://www.cnblogs.com/zhangdapangzo/......
  • 搭建python远程解释器
    背景python项目是flask项目,因一些包不支持windows,需要一个集中linux开发环境。公司使用K8S,没有多余CVM步骤使用VirtualBox+Vagrant创建虚拟机VirtualBox:5.2.4......
  • 从零到一搭建基础架构(8)-业务服务接入基础架构
    Hello,这里是爱Coding,爱Hiphop,爱喝点小酒的AKA柏炎。本篇是手把手搭建基础架构专栏的第八篇,也是最后一篇,......
  • docker 搭建redis 集群
    一、创建6个redis节点的配置文件bind0.0.0.0port6381databases1save36001save300100save6010000dbfilenamedump6381.rdbdir./appendonlyyesa......
  • zabbix搭建
    Zabbix简介zabbix介绍Zabbix是由AlexeiVladishev创建,目前是由ZabbixSIA在持续开发和提供支持。Zabbix是一种企业级的分布式开源监控解决方案。Zabbix是一款能......