Thursday, June 14, 2018

Install & Setup RabbitMQ on MacOS

Instroduction

Installation and setup RabbitMQ is pretty straight forward now, given the well published documentation. This post describes the basic steps for the purpose of Mule integration.

Installation

The easiest one is to use brew as the following:
$ brew install rabbitmq
$ which rabbitmqadmin
The newly installed tools are at:
liug@WRTVLMDV0002N37:~$ ls -lart /usr/local/sbin
total 0
lrwxr-xr-x   1 liug  admin    41B May 30 10:45 rabbitmqctl@ -> ../Cellar/rabbitmq/3.7.5/sbin/rabbitmqctl
lrwxr-xr-x   1 liug  admin    43B May 30 10:45 rabbitmqadmin@ -> ../Cellar/rabbitmq/3.7.5/sbin/rabbitmqadmin
lrwxr-xr-x   1 liug  admin    45B May 30 10:45 rabbitmq-server@ -> ../Cellar/rabbitmq/3.7.5/sbin/rabbitmq-server
lrwxr-xr-x   1 liug  admin    46B May 30 10:45 rabbitmq-plugins@ -> ../Cellar/rabbitmq/3.7.5/sbin/rabbitmq-plugins
lrwxr-xr-x   1 liug  admin    42B May 30 10:45 rabbitmq-env@ -> ../Cellar/rabbitmq/3.7.5/sbin/rabbitmq-env
lrwxr-xr-x   1 liug  admin    50B May 30 10:45 rabbitmq-diagnostics@ -> ../Cellar/rabbitmq/3.7.5/sbin/rabbitmq-diagnostics
lrwxr-xr-x   1 liug  admin    47B May 30 10:45 rabbitmq-defaults@ -> ../Cellar/rabbitmq/3.7.5/sbin/rabbitmq-defaults
lrwxr-xr-x   1 liug  admin    40B May 30 10:45 cuttlefish@ -> ../Cellar/rabbitmq/3.7.5/sbin/cuttlefish

Start Server

$ rabbitmq-server

  ##  ##
  ##  ##      RabbitMQ 3.7.5. Copyright (C) 2007-2018 Pivotal Software, 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_upgrade.log

              Starting broker...
 completed with 6 plugins.

Check Listening Ports

$ lsof -iTCP -nP | egrep LISTEN | egrep beam
beam.smp  67306 liug   79u  IPv4 0x5f93ad255eddc27d      0t0  TCP *:25672 (LISTEN)
beam.smp  67306 liug   90u  IPv4 0x5f93ad255c3a127d      0t0  TCP 127.0.0.1:5672 (LISTEN)
beam.smp  67306 liug   91u  IPv6 0x5f93ad255f408cd5      0t0  TCP *:61613 (LISTEN)
beam.smp  67306 liug   92u  IPv6 0x5f93ad255f408715      0t0  TCP *:1883 (LISTEN)
beam.smp  67306 liug   93u  IPv4 0x5f93ad256141be9d      0t0  TCP *:15672 (LISTEN)
Note:
Port Purpose
5672 TCP
61613 STOMP
1883 MQTT
15672 Management - Web Console

Import Logs

The logs are located at /usr/local/var/log/rabbitmq/rabbit@localhost.log, which contains very important information like the following about different listeners.

Configurations

There are a lot of important configurations located at:

/usr/local/Cellar/rabbitmq/3.7.5/ebin

The default user ID and password are guest/guest, which is defined at rabbit.app file.

No comments:

Post a Comment

Anypoint Studio Error: The project is missing Munit lIbrary to run tests

Anypoint Studio 7.9 has a bug. Even if we following the article: https://help.mulesoft.com/s/article/The-project-is-missing-MUnit-libraries-...