Prerequisite

  1. Homebrew

Installing mongoDB

$ brew install mongodb

Configuring mongoDB

Configuration file is /usr/local/etc/mongod.conf

To start mongoDB

$ brew services start mongodb

This will use /usr/local/var/mongodb/ as data directory

or using mongoDB deamon

$ mongod

This will use /data/db/ as data directory, which is the default data directory of mongoDB. To create it

sudo mkdir -p /data/db
sudo touch /data/db/mongod.lock
sudo chown -R $USER /data/db

Installing elasticsearch

$ brew install elasticsearch
$ brew info elasticsearch

Visit http://localhost:9200

Installing elasticsearch marvel plugin

$ brew upgrade elasticsearch
$ cd /usr/local/Cellar/elasticsearch/1.7.1/
$ ./bin/plugin -i elasticsearch/marvel/latest

Visit http://localhost:9200/_plugin/marvel