Linux command
lavinmq 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Start the broker
lavinmq
Start with a specific configuration file
lavinmq --config=[path/to/lavinmq.ini]
Specify the data directory
lavinmq --data-dir=[path/to/data]
Bind to a specific address
lavinmq --bind=[0.0.0.0] --amqp-port=[5672]
Show version
lavinmq -v
Manage the broker
lavinmqctl list_queues
Export broker definitions
lavinmqctl export_definitions > [definitions.json]
说明
LavinMQ is an open-source message broker that implements the AMQP 0-9-1 protocol and is wire-compatible with existing RabbitMQ client libraries. It also speaks MQTT and a native streams protocol. Written in Crystal, it is designed to handle very high throughput on a single node while keeping memory usage low by relying on the operating system page cache and memory-mapped files. The broker ships as two executables. lavinmq is the long-running server process that accepts client connections, routes messages between exchanges and queues, and exposes a built-in HTTP management UI. lavinmqctl is the administrative command-line tool used to inspect and manage virtual hosts, users, queues, exchanges, bindings, policies, and broker definitions while the server is running. LavinMQ supports clustering for high availability, replicated queues, federation, shovels, and a streams feature for log-style consumption. Configuration can be provided through an INI file or overridden on the command line, and the broker can be installed from native packages, built from source, or run as the official cloudamqp/lavinmq Docker image.
参数
- -c _file_, --config=_file_
- Load broker settings from the specified INI configuration file.
- -D _dir_, --data-dir=_dir_
- Directory for persistent data (queues, messages, definitions).
- -b _address_, --bind=_address_
- IP or hostname to listen on (default 127.0.0.1).
- --amqp-port=_port_
- AMQP listener port (default 5672).
- --amqps-port=_port_
- AMQPS (TLS) listener port (default 5671).
- --http-port=_port_
- HTTP management UI port (default 15672).
- --https-port=_port_
- HTTPS management UI port (default 15671).
- --guest-only-loopback=_bool_
- Restrict the default _guest_ user to loopback connections only.
- --log-level=_level_
- Logging verbosity (debug, info, warn, error, fatal).
- -h, --help
- Show usage information and exit.
- -v, --version
- Print the LavinMQ version and exit.
FAQ
What is the lavinmq command used for?
LavinMQ is an open-source message broker that implements the AMQP 0-9-1 protocol and is wire-compatible with existing RabbitMQ client libraries. It also speaks MQTT and a native streams protocol. Written in Crystal, it is designed to handle very high throughput on a single node while keeping memory usage low by relying on the operating system page cache and memory-mapped files. The broker ships as two executables. lavinmq is the long-running server process that accepts client connections, routes messages between exchanges and queues, and exposes a built-in HTTP management UI. lavinmqctl is the administrative command-line tool used to inspect and manage virtual hosts, users, queues, exchanges, bindings, policies, and broker definitions while the server is running. LavinMQ supports clustering for high availability, replicated queues, federation, shovels, and a streams feature for log-style consumption. Configuration can be provided through an INI file or overridden on the command line, and the broker can be installed from native packages, built from source, or run as the official cloudamqp/lavinmq Docker image.
How do I run a basic lavinmq example?
Run `lavinmq` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -c _file_, --config=_file_ do in lavinmq?
Load broker settings from the specified INI configuration file.