Skip to content

Instantly share code, notes, and snippets.

@johnblackmore
Last active October 5, 2016 07:13
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 johnblackmore/cd6b48e41bdba72fb2a553fb13acf777 to your computer and use it in GitHub Desktop.
Save johnblackmore/cd6b48e41bdba72fb2a553fb13acf777 to your computer and use it in GitHub Desktop.
Installing RabbitMQ on Scotchbox

RabbitMQ PHP Examples

Prerequisites

  • VirtualBox
  • Git
  • Composer

VM Setup

In a new directory clone the Scotchbox repo and build the VM.

git@github.com:scotch-io/scotch-box.git
cd scotch-box
vagrant up

Installing RabbitMQ

Log in to the VM with vagrant ssh then run the following:

echo 'deb http://www.rabbitmq.com/debian/ testing main' | sudo tee /etc/apt/sources.list.d/rabbitmq.list
sudo apt-get update
sudo apt-get install rabbitmq-server
sudo rabbitmq-plugins enable rabbitmq_management

You will now have RabbitMQ installed and the management plugin running on http://192.168.33.10:15672. The default user/password is guest/guest but if this doesn't work run this to create a new user test/test:

sudo rabbitmqctl add_user test test
sudo rabbitmqctl set_user_tags test administrator
sudo rabbitmqctl set_permissions -p / test ".*" ".*" ".*"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment