1.install the mongo db software
2.create data folder under C:\Program Files\MongoDB
3. create db folder under C:\Program Files\MongoDB\data
4. create log folder under C:\Program Files\MongoDB\data
5.create conf folder under C:\Program Files\MongoDB\data
finally execute the below commend on cmd
cd C:\Program Files\MongoDB\bin
press enter then copy and paste those commends one by one
mongod.exe --dbpath "C:\Program Files\MongoDB\data\db" --port 27017
mongod.exe --dbpath "C:\Program Files\MongoDB\data\db" --logpath "C:\Program Files\MongoDB\data\log\mongod.log"
and inside the mongodb.conf file we need configure the db
dbpath = C:\Program Files\MongoDB\data\db
port = 27017
logpath = C:\Program Files\MongoDB\data\log\mongod.log
mongod -f "C:\Program Files\MongoDB\data\conf\mongodb.conf" --install --serviceName mongodb26 --serviceDisplayName "MongoDB Server Instance mongodb26" --serviceDescription "MongoDB Server Instance running on mongodb26"
2.create data folder under C:\Program Files\MongoDB
3. create db folder under C:\Program Files\MongoDB\data
4. create log folder under C:\Program Files\MongoDB\data
5.create conf folder under C:\Program Files\MongoDB\data
finally execute the below commend on cmd
cd C:\Program Files\MongoDB\bin
press enter then copy and paste those commends one by one
mongod.exe --dbpath "C:\Program Files\MongoDB\data\db" --port 27017
mongod.exe --dbpath "C:\Program Files\MongoDB\data\db" --logpath "C:\Program Files\MongoDB\data\log\mongod.log"
and inside the mongodb.conf file we need configure the db
dbpath = C:\Program Files\MongoDB\data\db
port = 27017
logpath = C:\Program Files\MongoDB\data\log\mongod.log
mongod -f "C:\Program Files\MongoDB\data\conf\mongodb.conf" --install --serviceName mongodb26 --serviceDisplayName "MongoDB Server Instance mongodb26" --serviceDescription "MongoDB Server Instance running on mongodb26"
No comments:
Post a Comment