How to install RabbitMQ
To get started with RabbitMQ you'll first need to install it somewhere. If you manage your own servers, you can install RabbitMQ on Linux, Windows, or on Mac. If you're running your software in the Cloud, you might prefer running RabbitMQ on one of the many supported platforms like Amazon, Azure, Cloud Foundry, or Google Cloud. CloudAMQP deserves a special mention. It's a Cloud service that focuses only on providing RabbitMQ as a service. Finally, there are also Docker Images, Helm Charts, Chef Cookbooks, and Puppet Modules and as you can see, RabbitMQ runs on just about any platform available. To install RabbitMQ on Windows, go to RabbitMQ.com. Click on the Get Started link and on the Download Installation link. On the right hand side of the page, click on the Install Windows link, and click on Using the Official Installer. You will also have to install a 64-bit version of Erlang. This is the run time on which RabbitMQ runs. The RabbitMQ website has a link to the Erlang website. Be sure to download the 64-bit version of Erlang. Back on the RabbitMQ page, we can also download the RabbitMQ installer. First we'll install Erlang. It's important to run this as administrator. Otherwise, you will not have a certain registry key the Rabbit MQ requires. Default options are fine, so just click Next and install. And once Erlang has been installed, you can run the RabbitMQ installer. Here as well the default options are fine so just click Next and Install. You'll now have a new folder in your Start Menu called RabbitMQ Server. In this folder, you'll see several options. The RabbitMQ server will already be running but these links allow you to start and stop the service. I personally don't need it running all the time so I'll change the service setting. Open the services by clicking the Start menu, and typing Run. Then hit enter. Type in the service.msc then hit Enter. Find the RabbitMQ entry right click on it and select properties. You can change this start up type to manual and click okay. Now, whenever you need to run RabbitMQ locally, you can select the correct short cut in the Start Menu. RabbitMQ provides a management to easily manage your instance. To enable it, open your RabbitMQ Command Prompt. You can find it in the RabbitMQ folder in your start menu. At the Command Prompt, type in RabbitMQ - plugins, enable RabbitMQ_management. Then, in a browser, go to local host and port 15672. This is also an easy way of verifying that RabbitMQ is actually running. As an alternative to running RabbitMQ locally, let's look at Cloud AMQP. Go to Cloud AMQP.com and either register or login. I'll login with my Getup account. Now click on the green button to create a new instance. Give your instance a name. And select a plan. We'll choose the Little Lemur Plan now because it's free. Next click on the select region button, because we are using the Little Lemur Free plan we can't select a region. So click on the Review button, and finally, click on the button to create the instance. You now have a RabbitMQ instance running in the Cloud. To access the Management, just click on the button next to your instance. So these are two easy options of installing RabbitMQ. Either on your own machine, or in the Cloud using CloudAMQP.
No comments:
Post a Comment