rashintha / sysmo-backend

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sysmo Backend

NodeJS Prisma MongoDB

MongoDB Configurations

Enabling Replica Set

Open the mongo.conf file.

$ sudo nano /etc/mongo.conf

Uncomment the replication and add a replication set name.

replication:
  replSetName: "replicaset-01"

Restart the mongodb server and login and initiate the replication.

$ sudo systemctl restart mongodb
$ mongo
> rs.initiate()

About


Languages

Language:JavaScript 95.6%Language:Shell 4.4%