服务器 docker 如何查看rabbitmq 版本号
时间: 2024-02-26 16:05:27 浏览: 165
linux版本rabbitmq
要查看运行在 Docker 中的 RabbitMQ 版本号,可以使用以下命令:
```
docker exec <rabbitmq-container-name> rabbitmqctl status | grep RabbitMQ
```
其中,`<rabbitmq-container-name>` 是 RabbitMQ 容器的名称。
执行上述命令后,会输出 RabbitMQ 的相关信息,其中包括版本号,例如:
```
Status of node rabbit@<container-id> ...
[{pid,<pid>},
{running_applications,[{rabbitmq_management,"RabbitMQ Management Console","3.6.9"},
{rabbitmq_web_dispatch,"RabbitMQ Web Dispatcher","3.6.9"},
{rabbitmq_management_agent,"RabbitMQ Management Agent","3.6.9"},
{rabbit,"RabbitMQ","3.6.9"},
{mnesia,"MNESIA CXC 138 12","4.14.3"},
{amqp_client,"RabbitMQ AMQP Client","3.6.9"},
{rabbit_common,[],"3.6.9"},
{os_mon,"CPO CXC 138 46","2.4"},
{cowboy,"Small, fast, modern HTTP server.","1.0.1"},
{cowlib,"Support library for manipulating Web protocols.","1.0.0"},
{jsx,"a streaming, evented json parsing toolkit","2.8.2"}]},
{os,{unix,linux}},
{erlang_version,"Erlang/OTP 19 [erts-8.3.5.6] [source] [64-bit] [smp:4:4] [async-threads:64] [kernel-poll:true]\n"},
{memory,[{total,58824560},
{connection_readers,0},
{connection_writers,0},
{connection_channels,0},
{connection_other,0},
{queue_procs,0},
{queue_slave_procs,0},
{plugins,0},
{other_proc,192168},
{mnesia,11496},
{mgmt_db,0},
{msg_index,0},
{other_ets,1524800},
{binary,16680},
{code,23251859},
{atom,1338425},
{other_system,1985011}]},
{alarms,[]},
{listeners,[{clustering,25672,"::"},{amqp,5672,"::"}]},
{vm_memory_high_watermark,0.4},
{vm_memory_limit,834841753},
{disk_free_limit,50000000},
{disk_free,8942155264},
{file_descriptors,[{total_limit,1048576},
{total_used,2},
{sockets_limit,943626},
{sockets_used,0}]},
{processes,[{limit,1048576},{used,192169}]},
{run_queue,0},
{uptime,4258}]
```
在上述信息中,可以看到 RabbitMQ 的版本号为 `3.6.9`。
阅读全文