#!/bin/bash
MONGO=`which mongod`

if [ ! -d mongo ]; then
  mkdir mongo
fi

$MONGO --journal --dbpath ./mongo
#!/bin/bash
MONGO=`which mongod`

if [ ! -d mongo ]; then
  mkdir mongo
fi

$MONGO --bind_ip 0.0.0.0 --journal --dbpath ./mongo

Allow other people to connect to database by default
Allow other people to connect to database by default
