[root@localhost mnesia]# cat /etc/rabbitmq/rabbitmq-env.conf
RABBITMQ_MNESIA_BASE=/home/rabbitmq/mnesia
RABBITMQ_LOG_BASE=/home/rabbitmq/log
rabbitmq-server -detached
rabbitmqctl add_user cdspider cdspider
rabbitmqctl set_permissions -p / cdspider ".*" ".*" ".*"
rabbitmqctl set_user_tags cdspider administrator