rabbitmq 버전 확인
서버에서 실행중인 rabbitmq 버전을 확인하려면 어떻게합니까?
rabbitmq가 실행 중인지 확인하는 명령이 있습니까?
sudo rabbitmqctl 비행 상태
다음과 같은 줄을 찾으십시오.
{rabbit, "RabbitMQ", "2.6.1"},
명령 행에서 간단히 실행할 수 있습니다.
sudo rabbitmqctl status | grep rabbit
rabbitimq를 시작할 수 없으면 버전을 확인하는 유일한 방법은 설치 프로그램 시스템을 통하는 것입니다.
Eample Debian / Ubuntu :
dpkg -s rabbitmq-server | grep Version
Marek이 로컬 서버 또는 원격 서버 ( 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
다른 이름으로 저장 checkVersion.py
하고 다음으로 실행 하십시오 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
rabbitmqctl에 액세스 할 수 없거나 rabbitmq-server가 실행 중이 아닌 경우 Linux에서 다음을 수행하십시오.
ls /usr/lib/rabbitmq/lib/
나는 얻었다 :
rabbitmq_server-3.5.6
Windows 컴퓨터의 C # 에서이 작업을 수행하려고했으며 현재 모든 답변은 * nix에 대한 것이므로 다음을 사용하여 끝낸 코드를 게시합니다.
public string GetRabbitMqVersion()
{
string prefix = "rabbitmq_server-";
var dirs = System.IO.Directory.EnumerateDirectories(@"C:\Program Files (x86)\RabbitMQ Server", string.Format("{0}*",prefix));
foreach (var dir in dirs)
{
//Just grab the text after 'rabbitmq_server-' and return the first item found
var i = dir.LastIndexOf(prefix);
return dir.Substring(i+16);
}
return "Unknown";
}
C #을 사용하여 RMQ 버전을 얻으려면
using (var connection = connectionFactory.CreateConnection())
{
if (connection.ServerProperties.ContainsKey("version"))
Console.WriteLine("Version={0}",
Encoding.UTF8.GetString((byte[])connection.ServerProperties["version"]));
}
산출:
버전 = 3.6.3
On debian systems, you can just run:
dpkg-query --showformat='${Version}' --show rabbitmq-server
In the likely event you're using the "management" (web) plug-in, the RabbitMQ version appears in the upper-right corner of every web page, along with the version of the Erlang run-time.
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
I use following command to trim output down to version,
rabbitmqctl status | grep "{rabbit,\"RabbitMQ\""
Output:
{rabbit,"RabbitMQ","3.7.3"},
참고URL : https://stackoverflow.com/questions/7593269/verify-version-of-rabbitmq
'development' 카테고리의 다른 글
SQL Server에서 Cascading을 언제 사용해야하는 이유는 무엇입니까? (0) | 2020.06.16 |
---|---|
열거 형 정의에서 물결표 (~)는 무엇입니까? (0) | 2020.06.16 |
PHP 세션 수정 / 하이재킹 (0) | 2020.06.16 |
git reflog와 log의 차이점은 무엇입니까? (0) | 2020.06.16 |
문자열 벡터 입력을 사용하여 dplyr에서 여러 열로 그룹화 (0) | 2020.06.16 |