26

мар

If you need Asynchronous Messaging system in your project then RabbitMQ is a good solution for you. Sometimes we need to run on mac. Follow some steps to install RabbitMQ on mac: Steps 1: brew update. Brew install rabbitmq.


In this tutorial, we will learn to install RabbitMQ on Mac using Homebrew.

RabbitMQ is an open source message broker software. It is lightweight and easy to deploy. It supports AMQP (Advanced Message Queuing Protocol), STOMP (Streaming Text Oriented Messaging Protocol), MQTT (Message Queuing Telemetry Transport) and other protocols.

Alright, let's install RabbitMQ on Mac using Homebrew.

However, being a 64-bit application, it should open on Catalina without a whole lot of issues. Allows scheduling downloads. If you have any experience with Xtorrent P2P under Catalina, please, share in the comments below. Pros:. Xtorrent P2P is free to download and use but if you want to download torrents at a normal speed you'll have to purchase a paid version.Xtorrent P2P developers haven't updated their application for quite a while, so macOS 10.15 support is not guaranteed. Torrent mac os x sierra.

Step 1: Install Homebrew

Homebrew is 'The missing package manager for macOS'.

Installing applications and packages using Homebrew on Mac is super easy. I will recommend you to use Homebrew if you are a developer and use Mac for dev work.

Okay, open Terminal and type the following command.

Once you have Homebrew installed on your Mac, type the following command to check the version.

At the time of writing this tutorial I was using v2.0.1.

Already have Homebrew?

If you already have Homebrew installed on your Mac then run the following command to update it.

This will update the packages. If you have the latest updates then you will get the following output.

Step 2: Install RabbitMQ using Homebrew

Now, run the following command in Terminal to install RabbitMQ.

Step 3: Add to PATH

RabbitMQ server and CLI script are installed under /usr/local/sbin. Add this to PATH.

I have added the following to .bash_profile file.

Inside the .bash_profile file.

Where are the RabbitMQ server and CLI tools present?

RabbitMQ server and CLI tools are generally inside /usr/local/Cellar/rabbitmq/{version}/sbin/ directory.

On my Mac the RabbitMQ server and CLI tools are present inside the /usr/local/Cellar/rabbitmq/3.7.11/sbin/ directory.

Step 4: Start RabbitMQ server

To start the RabbitMQ run the following command.

Rabbitmq For Mac

Step 5: Access dashboard

We can access RabbitMQ web dashboard by going to http://localhost:15672 so, open the link in your favourite browser.

The default username and password is guest and guest respectively.


RabbitMQ dashboard.


Step 6: Stop RabbitMQ server

To stop RabbitMQ press Ctrl + C.

Possible errors

We may get an error like The `brew link` step did not complete successfully when trying to install RabbitMQ.

To fix this we have to run the following command.

We get the error /usr/local/sbin is not writable message.

This is because /usr/local/sbin directory is not present. So, go to /etc/paths.d directory and created a file named usr_local_sbin and write the path /usr/local/sbin inside the file and save it.

Inside usr_local_sbin file:

Now, create /usr/local/sbin directory.

Now change the ownership. Type whoami to get your username. Mine is yusufshakeel so, I will use the following.

Now run the brew link rabbitmq command.

Linking is done!

Please share this tutorial on social media if you find it useful and interesting. See you again in the next tutorial. Have fun :-)

Popular Posts