Skip to content

Instantly share code, notes, and snippets.

@HaidarZ
HaidarZ / Setup MongoDB on localhost as Replica Set
Created February 22, 2021 13:10 — forked from davisford/Setup MongoDB on localhost as Replica Set
Setup MongoDB replica set on local host with only a single primary
Add the `replication` section to the mongod.conf file:
```
$cat /usr/local/etc/mongod.conf
systemLog:
destination: file
path: /usr/local/var/log/mongodb/mongo.log
logAppend: true
storage:
engine: mmapv1