Apache ActiveMQ Artemis 使用教程
2024-09-02 21:31:32作者:袁立春Spencer
1. 项目的目录结构及介绍
Apache ActiveMQ Artemis 的目录结构如下:
activemq-artemis/
├── artemis-boot
├── artemis-cli
├── artemis-commons
├── artemis-core-client
├── artemis-dto
├── artemis-features
├── artemis-jms-client
├── artemis-jms-server
├── artemis-journal
├── artemis-protocols
├── artemis-rest
├── artemis-selector
├── artemis-server
├── artemis-service-extensions
├── artemis-spi
├── artemis-spring-integration
├── artemis-tools
├── artemis-web
├── artemis-website
├── bin
├── docs
├── examples
├── legal
├── licenses
├── pom.xml
├── README.md
└── tests
主要目录介绍:
artemis-boot: 包含启动 ActiveMQ Artemis 所需的脚本和配置。artemis-cli: 包含命令行工具,用于管理和配置 ActiveMQ Artemis。artemis-server: 核心服务器模块,包含消息服务器的实现。bin: 包含启动和管理 ActiveMQ Artemis 的脚本。docs: 包含项目的文档。examples: 包含各种使用示例。pom.xml: Maven 项目配置文件。
2. 项目的启动文件介绍
ActiveMQ Artemis 的启动文件主要位于 bin 目录下,包括:
artemis: 主启动脚本,用于启动和管理 ActiveMQ Artemis 实例。artemis-service: 用于将 ActiveMQ Artemis 作为服务运行的脚本。
启动步骤:
- 进入
bin目录:cd activemq-artemis/bin - 启动 ActiveMQ Artemis:
./artemis run
3. 项目的配置文件介绍
ActiveMQ Artemis 的配置文件主要位于 etc 目录下,包括:
broker.xml: 主配置文件,包含消息服务器的各种配置,如连接器、地址、队列等。bootstrap.xml: 引导配置文件,用于加载其他配置文件。logging.properties: 日志配置文件,用于配置日志输出。
主要配置项:
-
broker.xml:<broker xmlns="http://activemq.org/schema"> <connectors> <connector name="netty-connector">tcp://0.0.0.0:61616</connector> </connectors> <addresses> <address name="exampleQueue" type="queue"/> </addresses> </broker> -
logging.properties:handlers=java.util.logging.FileHandler, java.util.logging.ConsoleHandler java.util.logging.FileHandler.pattern=activemq.log java.util.logging.FileHandler.limit=50000 java.util.logging.FileHandler.count=1 java.util.logging.FileHandler.formatter=java.util.logging.SimpleFormatter java.util.logging.ConsoleHandler.level=INFO java.util.logging.ConsoleHandler.formatter=java.util.logging.SimpleFormatter
通过以上配置文件,可以对 ActiveMQ Artemis 进行详细的配置和管理。
登录后查看全文
热门项目推荐
相关项目推荐
GLM-5智谱 AI 正式发布 GLM-5,旨在应对复杂系统工程和长时域智能体任务。Jinja00
GLM-5-w4a8GLM-5-w4a8基于混合专家架构,专为复杂系统工程与长周期智能体任务设计。支持单/多节点部署,适配Atlas 800T A3,采用w4a8量化技术,结合vLLM推理优化,高效平衡性能与精度,助力智能应用开发Jinja00
jiuwenclawJiuwenClaw 是一款基于openJiuwen开发的智能AI Agent,它能够将大语言模型的强大能力,通过你日常使用的各类通讯应用,直接延伸至你的指尖。Python0220- QQwen3.5-397B-A17BQwen3.5 实现了重大飞跃,整合了多模态学习、架构效率、强化学习规模以及全球可访问性等方面的突破性进展,旨在为开发者和企业赋予前所未有的能力与效率。Jinja00
AtomGit城市坐标计划AtomGit 城市坐标计划开启!让开源有坐标,让城市有星火。致力于与城市合伙人共同构建并长期运营一个健康、活跃的本地开发者生态。01
AntSK基于.Net9 + AntBlazor + SemanticKernel 和KernelMemory 打造的AI知识库/智能体,支持本地离线AI大模型。可以不联网离线运行。支持aspire观测应用数据CSS01
项目优选
收起
deepin linux kernel
C
27
13
OpenHarmony documentation | OpenHarmony开发者文档
Dockerfile
626
4.12 K
Ascend Extension for PyTorch
Python
464
554
本项目是CANN提供的数学类基础计算算子库,实现网络在NPU上加速计算。
C++
930
802
🔥LeetCode solutions in any programming language | 多种编程语言实现 LeetCode、《剑指 Offer(第 2 版)》、《程序员面试金典(第 6 版)》题解
Java
69
21
AscendNPU-IR是基于MLIR(Multi-Level Intermediate Representation)构建的,面向昇腾亲和算子编译时使用的中间表示,提供昇腾完备表达能力,通过编译优化提升昇腾AI处理器计算效率,支持通过生态框架使能昇腾AI处理器与深度调优
C++
114
181
暂无简介
Dart
871
207
华为昇腾面向大规模分布式训练的多模态大模型套件,支撑多模态生成、多模态理解。
Python
130
189
openJiuwen agent-studio提供零码、低码可视化开发和工作流编排,模型、知识库、插件等各资源管理能力
TSX
1.43 K
378
昇腾LLM分布式训练框架
Python
136
160