Wednesday, September 23, 2015

docket rabbitmq

root@sam-clm2:~# docker exec 7931dc7e8611 /usr/sbin/rabbitmq-plugins enable rabbitmq_management
The following plugins have been enabled:
  mochiweb
  webmachine
  rabbitmq_web_dispatch
  amqp_client
  rabbitmq_management_agent
  rabbitmq_management

Applying plugin configuration to rabbit@ms-rabbit... started 6 plugins.
root@sam-clm2:~#


  wget http://guest:guest@localhost:15672/cli/rabbitmqadmin
  mv rabbitmqadmin.2 /usr/local/bin/rabbitmqadmin
  chmod +x /usr/local/bin/rabbitmqadmin
  rabbitmqadmin list exchanges

root@sam-clm2:~# rabbitmqadmin declare exchange name=exchange_Office type=direct
exchange declared
root@sam-clm2:~# rabbitmqadmin declare exchange name=exchange_PE type=direct
exchange declared
root@sam-clm2:~# rabbitmqadmin declare exchange name=exchange_JS type=direct
exchange declared
root@sam-clm2:~# rabbitmqadmin declare exchange name=exchange_ALL type=direct
exchange declared
root@sam-clm2:~# rabbitmqadmin declare exchange name=exchange_PDF type=direct




root@sam-clm2:~# docker exec 7931dc7e8611 /usr/sbin/rabbitmq-plugins list
 Configured: E = explicitly enabled; e = implicitly enabled
 | Status:   * = running on rabbit@ms-rabbit
 |/
[e*] amqp_client                       3.5.4
[  ] cowboy                            0.5.0-rmq3.5.4-git4b93c2d
[e*] mochiweb                          2.7.0-rmq3.5.4-git680dba8
[  ] rabbitmq_amqp1_0                  3.5.4
[  ] rabbitmq_auth_backend_ldap        3.5.4
[  ] rabbitmq_auth_mechanism_ssl       3.5.4
[  ] rabbitmq_consistent_hash_exchange 3.5.4
[  ] rabbitmq_federation               3.5.4
[  ] rabbitmq_federation_management    3.5.4
[E*] rabbitmq_management               3.5.4
[e*] rabbitmq_management_agent         3.5.4
[  ] rabbitmq_management_visualiser    3.5.4
[  ] rabbitmq_mqtt                     3.5.4
[  ] rabbitmq_shovel                   3.5.4
[  ] rabbitmq_shovel_management        3.5.4
[  ] rabbitmq_stomp                    3.5.4
[  ] rabbitmq_test                     3.5.4
[  ] rabbitmq_tracing                  3.5.4
[e*] rabbitmq_web_dispatch             3.5.4
[  ] rabbitmq_web_stomp                3.5.4
[  ] rabbitmq_web_stomp_examples       3.5.4
[  ] sockjs                            0.3.4-rmq3.5.4-git3132eb9
[e*] webmachine                        1.10.3-rmq3.5.4-gite9359c7

ang@sam-clm2:~$ rabbitmqadmin list exchanges
+--------------------+---------+
|        name        |  type   |
+--------------------+---------+
|                    | direct  |
| amq.direct         | direct  |
| amq.fanout         | fanout  |
| amq.headers        | headers |
| amq.match          | headers |
| amq.rabbitmq.log   | topic   |
| amq.rabbitmq.trace | topic   |
| amq.topic          | topic   |
| exchange_ALL       | direct  |
| exchange_JS        | direct  |
| exchange_Office    | direct  |
| exchange_PDF       | direct  |
| exchange_PE        | direct  |
+--------------------+---------+

ang@sam-clm2:~$ rabbitmqadmin list queues
+------------------+----------+
|       name       | messages |
+------------------+----------+
| queue_ALL_new    | 0        |
| queue_JS_new     | 0        |
| queue_Office_new | 0        |
| queue_PDF_new    | 0        |
| queue_PE_new     | 0        |
+------------------+----------+


No comments:

Post a Comment