Verify version of rabbitmq

2020-02-16 20:09发布

How can I verify which version of rabbitmq is running on a server?

Is there a command to verify that rabbitmq is running?

标签: rabbitmq
11条回答
我命由我不由天
2楼-- · 2020-02-16 21:04

If you have no access to rabbitmqctl or rabbitmq-server is not running, on linux do :

ls /usr/lib/rabbitmq/lib/

I got :

rabbitmq_server-3.5.6
查看更多
女痞
3楼-- · 2020-02-16 21:10

On debian systems, you can just run:

dpkg-query --showformat='${Version}' --show rabbitmq-server
查看更多
Fickle 薄情
4楼-- · 2020-02-16 21:11

Login to management ui and in top right you can find the version. Also use the following command to find the version

# sudo bash

# rabbitmqctl status | grep rabbit

查看更多
手持菜刀,她持情操
5楼-- · 2020-02-16 21:13

As Marek said on a local server, or, on a remote server (using amqplib):

from amqplib import client_0_8 as amqp
import sys

conn = amqp.Connection(host=sys.argv[1], userid="guest", password="guest", virtual_host="/", insist=False)

for k, v in conn.server_properties.items():
    print k, v

Save as checkVersion.py and run with python checkVersion.py dev.rabbitmq.com:

% python checkVersion.py dev.rabbitmq.com
information Licensed under the MPL.  See http://www.rabbitmq.com/
product RabbitMQ
copyright Copyright (C) 2007-2011 VMware, Inc.
capabilities {}
platform Erlang/OTP
version 2.6.0
查看更多
小情绪 Triste *
6楼-- · 2020-02-16 21:14

You can simply execute from the command line:

sudo rabbitmqctl status | grep rabbit
查看更多
登录 后发表回答