This file contains 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
yum install -y erlang | |
rpm --import https://www.rabbitmq.com/rabbitmq-signing-key-public.asc | |
wget https://www.rabbitmq.com/releases/rabbitmq-server/v3.5.6/rabbitmq-server-3.5.6-1.noarch.rpm | |
rpm -Uvh rabbitmq-server-3.5.6-1.noarch.rpm | |
chkconfig rabbitmq-server on | |
/sbin/service rabbitmq-server start | |
rabbitmqctl status | |
rabbitmq-plugins enable rabbitmq_management | |
/sbin/service rabbitmq-server restart | |
rabbitmqctl add_user [username] kd9RWz5zSFT1 |
This file contains 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
# Create your superuser | |
$ mongo | |
> use admin | |
> db.createUser({user:"someadmin",pwd:"secret", roles:[{role:"root",db:"admin"}]}) | |
> exit | |
# Alias for convenience (optional and at your own risk) | |
$ echo 'alias mongo="mongo --port 27017 -u someadmin -p secret --authenticationDatabase admin"' >> ~/.bash_profile | |
$ source ~/.bash_profile |