LoginSignup
1
1

More than 5 years have passed since last update.

rabbitmqの各種コマンド一覧

Last updated at Posted at 2015-11-04

rabbitmqctl

rabbitmqの環境設定を確認する.

[selmertsx@rabbitmq]$ rabbitmqctl environment
Application environment of node rabbit@localhost ...
[{auth_backends,[rabbit_auth_backend_internal]},

rabbitmqの実行状態を確認する.

[selmertsx@rabbitmq]$ rabbitmqctl status
Status of node rabbit@localhost ...
[{pid,16570},
 {running_applications,
     [{rabbitmq_management,"RabbitMQ Management Console","3.3.4"},
      {rabbitmq_web_dispatch,"RabbitMQ Web Dispatcher","3.3.4"},
      {webmachine,"webmachine","1.10.3-rmq3.3.4-gite9359c7"},

list_queues queueのmessageの状態を見る

[selmertsx@color-server]$ rabbitmqctl list_queues name messages_ready messages_unacknowledged
Listing queues ...
amq.gen-2oo35vOvojjfIvoNXQLHSw  0   0
amq.gen-Lx64bchkvkTI6qrtzSxPHw  0   0
amq.gen-PU03OHSwGzxTwIBFKSkq2A  0   0
amq.gen-h73HZznBoHBdA_Gug40QTA  1   0

rabbitmq-server

RabbitMQ のブローカーを立ち上げる

[selmertsx@~]$ rabbitmq-server

              RabbitMQ 3.3.4. Copyright (C) 2007-2014 GoPivotal, Inc.
  ##  ##      Licensed under the MPL.  See http://www.rabbitmq.com/
  ##  ##
  ##########  Logs: /usr/local/var/log/rabbitmq/rabbit@localhost.log
  ######  ##        /usr/local/var/log/rabbitmq/rabbit@localhost-sasl.log
  ##########
              Starting broker... completed with 10 plugins.

rabbitmq-plugins

利用するpluginの一覧を確認

[selmertsx@~]$ rabbitmq-plugins list -e
[e] amqp_client                3.3.4
[e] mochiweb                   2.7.0-rmq3.3.4-git680dba8
[E] rabbitmq_amqp1_0           3.3.4
[E] rabbitmq_auth_backend_http 3.3.4
[E] rabbitmq_management        3.3.4
[e] rabbitmq_management_agent  3.3.4
[E] rabbitmq_mqtt              3.3.4
[e] rabbitmq_web_dispatch      3.3.4
[e] webmachine                 1.10.3-rmq3.3.4-gite9359c7
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1