当前位置: 首页 > news >正文

activemq 的安装部署

下载

https://activemq.apache.org/components/classic/download/# 在/opt目录下载
wget https://dlcdn.apache.org//activemq/5.18.6/apache-activemq-5.18.6-bin.tar.gz

解压

tar -zxvf  apache-activemq-5.18.6-bin.tar.gz

配置java环境

vim /opt/apache-activemq-5.18.6/bin/env
增加

JAVA_HOME="/opt/openjdk-11.0.20_8"

启动

/opt/apache-activemq-5.18.6/bin/activemq start /opt/apache-activemq-5.18.6/bin/activemq status/opt/apache-activemq-5.18.6/bin/activemq stop

配置修改

启动的web端口

vim /opt/apache-activemq-5.18.6/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>

web 的账户密码

[root@aa conf]# cat jetty-realm.properties
## ---------------------------------------------------------------------------
## Licensed to the Apache Software Foundation (ASF) under one or more
## contributor license agreements.  See the NOTICE file distributed with
## this work for additional information regarding copyright ownership.
## The ASF licenses this file to You under the Apache License, Version 2.0
## (the "License"); you may not use this file except in compliance with
## the License.  You may obtain a copy of the License at
##
## http://www.apache.org/licenses/LICENSE-2.0
##
## Unless required by applicable law or agreed to in writing, software
## distributed under the License is distributed on an "AS IS" BASIS,
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
## See the License for the specific language governing permissions and
## limitations under the License.
## ---------------------------------------------------------------------------# Defines users that can access the web (console, demo, etc.)
# username: password [,rolename ...]
admin: admin, admin

制作服务

tee > /usr/lib/systemd/system/activemq.service <<-EOF
[Unit]
Description=ActiveMQ service
After=network.target
[Service]
Type=forking
ExecStart=/opt/apache-activemq-5.18.6/bin/activemq start
ExecStop=/opt/apache-activemq-5.18.6/bin/activemq stop
User=root
Group=root
Restart=always
RestartSec=9
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=activemq
[Install]
WantedBy=multi-user.target
EOF
systemctl daemon-reload && systemctl enable --now activemq
systemctl start activemq
systemctl status activemq
http://www.lryc.cn/news/502511.html

相关文章:

  • 【H3CNE邓方鸣】配置链路聚合+2024.12.11
  • C语言 学习 日志 递归函数 2024/12/12
  • 【Ubuntu】使用ip link工具创建虚拟局域网并配置?
  • flink sink kafka的事务提交现象猜想
  • 网络原理03
  • 每天40分玩转Django:简介和环境搭建
  • 【蓝桥杯最新板】蓝桥杯嵌入式液晶上实现电子时钟
  • 【机器学习】基础知识:拟合度(Goodness of Fit)
  • 使用Jackson库在Java应用程序中将Map对象转换为JSON数组字符串,以及反向操作
  • 深入解析强化学习中的 Generalized Advantage Estimation (GAE)
  • 离开wordpress
  • Python的3D可视化库【vedo】1-4 (visual模块) 体素可视化、光照控制、Actor2D对象
  • 使用html和JavaScript实现一个简易的物业管理系统
  • 什么是纯虚函数?什么是抽象类?纯虚函数和抽象类在面向对象编程中的意义是什么?
  • #Ts篇: Record<string, number> 是 TypeScript 中的一种类型定义,它表示一个键值对集合
  • Exp 智能协同管理系统前端首页框架开发
  • C# 备份文件夹
  • 互联网信息泄露与安全扫描工具汇总
  • 主导极点,传递函数零极点与时域模态
  • 永恒之蓝漏洞利用什么端口
  • 网络安全与防范
  • Navicat 17 功能简介 | SQL 开发
  • 嵌入式系统中的并行编程模型:汇总解析与应用
  • VulkanSamples编译记录
  • 使用FabricJS对大图像应用滤镜(巨坑)
  • 网页502 Bad Gateway nginx1.20.1报错与解决方法
  • Spring基础分析02-BeanFactory与ApplicationContext
  • Rerender A Video 技术浅析(五):对象移除与自动配色
  • Java项目实战II基于微信小程序的小区租拼车管理信息系统 (开发文档+数据库+源码)
  • 【数字花园】数字花园(个人网站、博客)搭建经历汇总教程