MAC 安装 rabbitmq
所属分类 rabbitmq
浏览量 226
// 更新brew资源
brew update
// 执行安装
brew install rabbitmq
查看安装信息
brew info rabbitmq
==> rabbitmq: stable 3.13.1 (bottled)
Messaging and streaming broker
https://www.rabbitmq.com
Installed
/opt/homebrew/Cellar/rabbitmq/3.13.1 (1,523 files, 35.9MB) *
Poured from bottle using the formulae.brew.sh API on 2024-04-24 at 17:40:24
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/r/rabbitmq.rb
License: MPL-2.0
==> Dependencies
Required: erlang ✔
==> Caveats
Management UI: http://localhost:15672
Homebrew-specific docs: https://rabbitmq.com/install-homebrew.html
Bash completion has been installed to:
/opt/homebrew/etc/bash_completion.d
To start rabbitmq now and restart at login:
brew services start rabbitmq
Or, if you don't want/need a background service you can just run:
CONF_ENV_FILE="/opt/homebrew/etc/rabbitmq/rabbitmq-env.conf" /opt/homebrew/opt/rabbitmq/sbin/rabbitmq-server
启动
brew services start rabbitmq
或者
# 启动
rabbitmq-server
# 后台启动命令
rabbitmq-server -detached
# 查询rabbitmq的状态
rabbitmqctl status
# 停止
rabbitmqctl stop
添加用户
rabbitmqctl add_user test 123456
Adding user "test" ...
Done. Don't forget to grant the user permissions to some virtual hosts! See 'rabbitmqctl help set_permissions' to learn more.
增加管理员权限
rabbitmqctl set_user_tags test administrator
Setting tags for user "test" to [administrator] ...
http://localhost:15672
rabbitmqctl status 展示信息
Status of node rabbit@localhost ...
Runtime
OS PID: 8375
OS: macOS
Uptime (seconds): 650
Is under maintenance?: false
RabbitMQ version: 3.13.1
RabbitMQ release series support status: supported
Node name: rabbit@localhost
Erlang configuration: Erlang/OTP 26 [erts-14.2.4] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] [jit] [dtrace]
Crypto library: OpenSSL 3.3.0 9 Apr 2024
Erlang processes: 463 used, 1048576 limit
Scheduler run queue: 1
Cluster heartbeat timeout (net_ticktime): 60
Plugins
Enabled plugin file: /opt/homebrew/etc/rabbitmq/enabled_plugins
Enabled plugins:
* rabbitmq_mqtt
* rabbitmq_stream
* rabbitmq_stomp
* rabbitmq_stream_common
* rabbitmq_amqp1_0
* rabbitmq_management
* rabbitmq_management_agent
* rabbitmq_web_dispatch
* amqp_client
* cowboy
* oauth2_client
* cowlib
Data directory
Node data directory: /opt/homebrew/var/lib/rabbitmq/mnesia/rabbit@localhost
Raft data directory: /opt/homebrew/var/lib/rabbitmq/mnesia/rabbit@localhost/quorum/rabbit@localhost
Config files
Log file(s)
* /opt/homebrew/var/log/rabbitmq/rabbit@localhost.log
* < stdout >
Alarms
(none)
Memory
Total memory used: 0.0643 gb
Calculation strategy: rss
Memory high watermark setting: 0.4 of available memory, computed to: 3.436 gb
code: 0.0345 gb (39.86 %)
other_system: 0.0263 gb (30.41 %)
other_proc: 0.0177 gb (20.38 %)
other_ets: 0.003 gb (3.52 %)
plugins: 0.0017 gb (1.91 %)
atom: 0.0016 gb (1.81 %)
metrics: 0.0011 gb (1.23 %)
msg_index: 0.0002 gb (0.26 %)
mgmt_db: 0.0002 gb (0.2 %)
metadata_store: 0.0001 gb (0.14 %)
binary: 0.0001 gb (0.11 %)
mnesia: 0.0001 gb (0.09 %)
metadata_store_ets: 0.0 gb (0.04 %)
quorum_ets: 0.0 gb (0.03 %)
connection_other: 0.0 gb (0.0 %)
quorum_queue_procs: 0.0 gb (0.0 %)
quorum_queue_dlx_procs: 0.0 gb (0.0 %)
stream_queue_procs: 0.0 gb (0.0 %)
stream_queue_replica_reader_procs: 0.0 gb (0.0 %)
connection_readers: 0.0 gb (0.0 %)
connection_writers: 0.0 gb (0.0 %)
connection_channels: 0.0 gb (0.0 %)
queue_procs: 0.0 gb (0.0 %)
queue_slave_procs: 0.0 gb (0.0 %)
stream_queue_coordinator_procs: 0.0 gb (0.0 %)
allocated_unused: 0.0 gb (0.0 %)
reserved_unallocated: 0.0 gb (0.0 %)
File Descriptors
Total: 0, limit: 159
Sockets: 0, limit: 141
Free Disk Space
Low free disk space watermark: 0.05 gb
Free disk space: 43.5368 gb
Totals
Connection count: 0
Queue count: 0
Virtual host count: 1
Listeners
Interface: [::], port: 15672, protocol: http, purpose: HTTP API
Interface: [::], port: 61613, protocol: stomp, purpose: STOMP
Interface: [::], port: 5552, protocol: stream, purpose: stream
Interface: [::], port: 1883, protocol: mqtt, purpose: MQTT
Interface: [::], port: 25672, protocol: clustering, purpose: inter-node and CLI tool communication
Interface: 127.0.0.1, port: 5672, protocol: amqp, purpose: AMQP 0-9-1 and AMQP 1.0
上一篇
下一篇
Flink JobManager与TaskManage 运行架构
springboot 接口 post 报错 Cannot generate variable name for non-typed Collection parameter type
prometheus file_sd_config 基于文件的服务发现
rabbitmq prometheus插件 和 rabbitmq-exporter
rabbitmq prometheus 插件 指标说明
布林通道