[rabbitmq-discuss] rabbitmq on EC2 using user-data

Fei Yao mail2fei at gmail.com
Fri May 30 03:19:32 BST 2014


Hi,
I'm using the following link for the provisioning on EC2: 
http://www.rabbitmq.com/ec2.html . I've made some modification to allow 
rabbitmq_management plugin as below. Everything works fine, but the 
"/usr/sbin/rabbitmq-plugins enable rabbitmq_management". I don't see any 
error either. I've checked log file under /var/log/rabbitmq/. That line 
seems to be never run. Please help.

#!/bin/sh
cat <<EOF > /etc/apt/sources.list.d/rabbitmq.list
deb http://www.rabbitmq.com/debian/ testing main
EOF

curl http://www.rabbitmq.com/rabbitmq-signing-key-public.asc -o 
/tmp/rabbitmq-signing-key-public.asc
apt-key add /tmp/rabbitmq-signing-key-public.asc
rm /tmp/rabbitmq-signing-key-public.asc

apt-get -qy update
apt-get -qy install rabbitmq-server

cat <<EOF > /etc/default/rabbitmq-server
ulimit -n 1024
EOF

cat <<EOF > /etc/rabbitmq/rabbitmq.config
[
  {rabbit, [
    {cluster_partition_handling, "pause_minority"}
  ]}
].
EOF

/usr/sbin/rabbitmq-plugins enable rabbitmq_management
/usr/sbin/rabbitmqctl add_user rabbit bunny
/usr/sbin/rabbitmqctl set_user_tags rabbit administrator
service rabbitmq-server restart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20140529/9d182d66/attachment.html>


More information about the rabbitmq-discuss mailing list