Skip to content

Instantly share code, notes, and snippets.

View dibble203's full-sized avatar

Jeff Lee dibble203

  • Vonage Business Solutions
  • United States
View GitHub Profile
@tamoyal
tamoyal / gist:10441108
Created April 11, 2014 04:39
Create super user and database user in Mongo 2.6
# 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
@joshdvir
joshdvir / install_rabbit.sh
Last active April 16, 2018 16:21
Install RabbitMQ on Amazon Linux
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