Skip to content

Instantly share code, notes, and snippets.

@jbub
Last active October 31, 2017 18:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jbub/99f51cb8f56cac51bc2b3a662307165f to your computer and use it in GitHub Desktop.
Save jbub/99f51cb8f56cac51bc2b3a662307165f to your computer and use it in GitHub Desktop.
rabbitmq-cli-consumer testing

consumer

./rabbitmq-cli-consumer_linux_amd64 -e "echo" -c config.conf -V

publish testing message

rabbitmqadmin publish exchange=amq.default routing_key=default payload="hello, world"

example output

2017/10/31 19:37:24 Connecting RabbitMQ...
2017/10/31 19:37:24 Connected.
2017/10/31 19:37:24 Opening channel...
2017/10/31 19:37:24 Done.
2017/10/31 19:37:24 Setting QoS...
2017/10/31 19:37:24 Succeeded setting QoS.
2017/10/31 19:37:24 Declaring queue "default"...
2017/10/31 19:37:24 Registering consumer...
2017/10/31 19:37:24 Succeeded registering consumer.
2017/10/31 19:37:24 Waiting for messages...
2017/10/31 19:37:26 Processing message...
2017/10/31 19:37:26 Running command: "echo aGVsbG8sIHdvcmxk"
2017/10/31 19:37:26 Processed!
[rabbitmq]
host = localhost
username = guest
password = guest
vhost = /
port = 5672
queue = default
compression = Off
[logs]
error = error.log
info = info.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment