Mongodb

Amazon Linux

 * https://www.mongodb.com/download-center#community
 * wget https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-amazon-3.2.10.tgz
 * 1) unzip and check README
 * 2) mkdir -p /data/db; chown ec2-user:ec2-user /data/db
 * 3) export LC_ALL=en_US.UTF-8
 * 4) echo "export LC_ALL=en_US.UTF-8" >> ~/.bashrc
 * 5) ./bin/mongod

specify data folder
mongod --dbpath /Users/dev/mongodb_data

mongo db create user & security
./mongo >use admin > db.createUser({ user:'admin', pwd: 'admin',  customData: {desc: 'The admin user for admin db'},  roles: ['readWrite', 'dbAdmin', 'clusterAdmin']  })
 * start mongo no security

mongod --auth
 * start mongod with --auth option