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
@davisford
davisford / Setup MongoDB on localhost as Replica Set
Last active May 14, 2024 06:37
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