curl -O https://fastdl.mongodb.org/osx/mongodb-osx-x86_64-3.4.4.tgz
tar -zxvf mongodb-osx-x86_64-3.4.4.tgz
mkdir -p mongodb
cp -R -n mongodb-osx-x86_64-3.4.4/ mongodb
export PATH=<mongodb-install-directory>/bin:$PATH
systemLog:
destination: file
path: "/var/log/mongodb/mongod.log"
logAppend: true
storage:
journal:
enabled: true
processManagement:
fork: true
net:
bindIp: 127.0.0.1
port: 27017
setParameter:
enableLocalhostAuthBypass: false
...
Set the following variables inside the script
mongodb home path:
MONGOHOME=".../mongodb"
mongodb data directory path:
MONGODBPATH=".../mongodb/data"
mongodb configuration file path:
MONGODBCONFIG=".../mongod.conf"
- Patrick Kowalik - Initial work - Mongo_Start_Stop