Skip to content

Instantly share code, notes, and snippets.

@tfitch
Created August 12, 2014 18:49
Show Gist options
  • Save tfitch/e4844767f666468134cb to your computer and use it in GitHub Desktop.
Save tfitch/e4844767f666468134cb to your computer and use it in GitHub Desktop.
mongodb sysconfig example
# This config file is manually-generated by tfitch
# please modify manually if the IaaS setup changes
DAEMON="/apps/mongodb/bin/mongod"
NAME="mongod"
DAEMON_OPTS=""
DAEMON_OPTS="$DAEMON_OPTS --port 27017"
DAEMON_OPTS="$DAEMON_OPTS --dbpath /apps/data/mongodb"
DAEMON_OPTS="$DAEMON_OPTS --logpath /apps/log/mongodb/mongod.log"
# we're a replicaset
DAEMON_OPTS="$DAEMON_OPTS --replSet awc"
# enabling REST for mongoDB
DAEMON_OPTS="$DAEMON_OPTS --rest"
# keyfile for security
DAEMON_OPTS="$DAEMON_OPTS --keyFile /apps/mongodb/conf/awc-mongodb.key"
DAEMON_OPTS="$DAEMON_OPTS --fork"
DBPATH="/apps/data/mongodb"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment