Skip to content

Instantly share code, notes, and snippets.

View ntloi95's full-sized avatar
😀
Pretty good

Loi Nguyen ntloi95

😀
Pretty good
View GitHub Profile
@ntloi95
ntloi95 / Setup MongoDB on localhost as Replica Set
Created May 20, 2021 05:25 — 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