查看RabbitMQ的版本号

想要查看部署到K8S上的RabbitMQ version 在网上找了一个

sudo rabbitmqctl status | grep rabbit

但是当我登录rabbitmq对应的POD容器内执行时发现报错

全局找了下发现有rabbitmqctl文件的有两个位置,可以进去试下

在escript目录下试了下可以获取到版本号

cd /opt/rabbitmq/escript
rabbitmqctl version

在sbin目录执行 rabbitmqctl version也是报错。

因此查询部署到K8S上RabbitMQ的版本号需要登录对应的POD,再进入到/opt/rabbitmq/escript
目录后执行rabbitmqctl version

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
查看运行在 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`。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值