Verify version of rabbitmq

前端 未结 11 1999
误落风尘
误落风尘 2020-12-23 15:30

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

Is there a command to verify that rabbitmq is running?

相关标签:
11条回答
  • 2020-12-23 16:04

    On debian systems, you can just run:

    dpkg-query --showformat='${Version}' --show rabbitmq-server
    
    0 讨论(0)
  • 2020-12-23 16:09

    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
    
    0 讨论(0)
  • 2020-12-23 16:11

    sudo rabbitmqctl status

    and look for line that looks like that:

    {rabbit,"RabbitMQ","2.6.1"},

    0 讨论(0)
  • 2020-12-23 16:11

    I use following command to trim output down to version,

    rabbitmqctl status | grep "{rabbit,\"RabbitMQ\""
    

    Output:

      {rabbit,"RabbitMQ","3.7.3"},
    
    0 讨论(0)
  • 2020-12-23 16:12

    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

    0 讨论(0)
  • 2020-12-23 16:17

    To get RMQ version using C#

    using (var connection = connectionFactory.CreateConnection())
    {
        if (connection.ServerProperties.ContainsKey("version"))
            Console.WriteLine("Version={0}",
                Encoding.UTF8.GetString((byte[])connection.ServerProperties["version"]));
    }
    

    Output:

    Version=3.6.3

    0 讨论(0)
提交回复
热议问题