Met RabbitMQ and said…rabbitmqctl status and stop afterwards

It all begun with the very concise article RabbitMQ & Clojure: Hello World. There was not much about Clojure, but the outcome was even more astounding than I anticipated – just a few minutes and I’ve got RabbitMQ installed that I was going to try out some day, but never got at it. Yet another tool in my toolbox.

Since I’m on MacOS, it was as simple as following Install the Server that boiled down to executing

sudo port install rabbitmq-server

.

$ sudo port install rabbitmq-server
--->  Computing dependencies for rabbitmq-server
--->  Dependencies to be installed: erlang gawk
...
--->  Extracting rabbitmq-server
--->  Configuring rabbitmq-server
--->  Building rabbitmq-server
--->  Staging rabbitmq-server into destroot
--->  Creating launchd control script
###########################################################
# A startup item has been generated that will aid in
# starting rabbitmq-server with launchd. It is disabled
# by default. Execute the following command to start it,
# and to cause it to launch at startup:
#
# sudo port load rabbitmq-server
###########################################################
--->  Installing rabbitmq-server @2.3.1_0
--->  Activating rabbitmq-server @2.3.1_0
--->  Cleaning rabbitmq-server

While installing the server it reminded me where I had heard about the product – it was when I read about Erlang the language and RabbitMQ was mentioned as its usecase. Perhaps it could be a way to learn the language some day. Anyway, Erlang made me sure it would inevitably bring something really new.

Started up the rabbitmq server with the following command –

sudo rabbitmq-server -detached

as described in Run RabbitMQ Server.

$ sudo rabbitmq-server -detached
Activating RabbitMQ plugins ...
*WARNING* Undefined function crypto:des3_cbc_decrypt/5
*WARNING* Undefined function crypto:start/0
*WARNING* Undefined function ssl:close/1
*WARNING* Undefined function ssl:connection_info/1
*WARNING* Undefined function ssl:controlling_process/2
*WARNING* Undefined function ssl:peercert/1
*WARNING* Undefined function ssl:peername/1
*WARNING* Undefined function ssl:recv/3
*WARNING* Undefined function ssl:send/2
*WARNING* Undefined function ssl:sockname/1
*WARNING* Undefined function ssl:ssl_accept/3
0 plugins activated:

It didn’t take long before I could start and stop the server.

$ sudo rabbitmqctl status
Status of node rabbit@devmac ...
[{running_applications,[{rabbit,"RabbitMQ","2.3.1"},
                        {mnesia,"MNESIA  CXC 138 12","4.4.16"},
                        {os_mon,"CPO  CXC 138 46","2.2.5"},
                        {sasl,"SASL  CXC 138 11","2.1.9.2"},
                        {stdlib,"ERTS  CXC 138 10","1.17.2"},
                        {kernel,"ERTS  CXC 138 10","2.14.2"}]},
 {nodes,[{disc,[rabbit@devmac]}]},
 {running_nodes,[rabbit@devmac]}]
...done.

$ sudo rabbitmqctl stop
Stopping and halting node rabbit@devmac ...
...done.

Done?! Sure, just for now. I’ll get back to it soon. It’s said that installation is the very first step to learn the product and I’m done with it. I’m glad I stumbled upon the article – killing two birds with one stone is what I enjoy the most! Who would’ve said that learning Clojure might learn me more than the language itself.

Be Sociable, Share!
This entry was posted in Frameworks.

Leave a Reply

%d bloggers like this: