Last active
May 20, 2017 23:15
-
-
Save justinrainbow/4548484 to your computer and use it in GitHub Desktop.
Simple bootstrap script for getting RabbitMQ w/ the Stomp plugin and web management plugin running on a SmartOS box
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
pkgin -y in rabbitmq | |
rabbitmq-plugins enable rabbitmq_stomp rabbitmq_management | |
cat > /opt/local/etc/rabbitmq/rabbitmq-env.conf <<-EOF | |
RABBITMQ_NODENAME=rabbit | |
RABBITMQ_HOME=/var/db/rabbitmq | |
EOF | |
cat > /opt/local/etc/rabbitmq/rabbitmq.config <<-EOF | |
[ | |
{rabbitmq_stomp, [{tcp_listeners, [6163]}]}, | |
{rabbitmq_management, [{listener, [{port, 15672}]}]} | |
]. | |
EOF | |
svcadm enable epmd:default rabbitmq:default |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment