MongoDB replica set deployment- Problems resolved. Connecting to mongoDB compass

preview_player
Показать описание
In this video you will learn how to setup #mongodb for #production. We will be creating a #cluster of mongodb using #replicaset, which is the recommended way to #deploy mongodb for production. We will also discuss common problems faced during deployment and also the solution of the same.

----COMMANDS---
----Node-1-----
mongod --port=2740 --replSet=rs31 --dbptah=E:\data\data1

----Node-2-----
mongod --port=2741 --replSet=rs31 --dbptah=E:\data\data2

---connect to one node------

mongosh --port 2740

---relplica set initiation and adding---

---mongoDB compass connection string--

mongodb://localhost:2740,localhost:2741/?replicaSet=rs31
Рекомендации по теме
Комментарии
Автор

Nice explanation. Needed the video. Faced some problem while deploying, found the solution, Thanks.

RajDas-kqnj