i'm beginner on mongodb and i have a question when you install mongodb you have to create a folder /data/db because the data is stored on /data/db. And on the replicaset you cerate many folder when you have primary replica arbiter etc... My question is /data/db the is always a primary server or we use it just to install mongod. when you create a replicaset where the data is srpred? i'm confused i can't understand the goal of data/db and if is necessary or not.
Asked
Active
Viewed 62 times
0
-
Thank you it is clear for me i have an other case in replica set case the listening port is: primary server's port ? @N3i1 – Amal Kostali Targhi Jan 31 '18 at 16:51