![]() ![]() ,compressor=snappy),file_manager=(close_idle_time=100000),checkpoint=(wait=60,lo ,config_base=false,statistics=(fast),log=(enabled=true,archive=true,path=journal So setting the active storage engine to 'wiredTiger'. ![]() :\Program Files\MongoDB\replicaSet1 created by the 'wiredTiger' storage engine, This is not working (throwing error): C:\Users\well come>mongod -port 27018 -dbpath "C:\Program Files\MongoDB\replicĪSet1" -replSet replicaSetMGL -smallfiles -oplogSize 128 mongod -port 27018 -dbpath "C:\Program Files\MongoDB\replicaSet1" -replSet replicaSetMGL -smallfiles -oplogSize 128 27018, I executed below command in another terminal. ![]() Now for creating replica set for port no. I have created two empty folders in mongodb folder as replicaSet1 and replicaSet2. For creating Primary database I run command mongod -port 27017 -dbpath "C:\Program Files\MongoDB\data" -replSet replicaSetMGL -smallfiles -oplogSize 128 For accessing this database I usually run the below command mongod -dbpath "C:\program files\mongodb\data" -port 27017 I have database which is set up in data folder of mongodb. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |