Mongodb - Create instance
Download MongodbOpen url - https://www.mongodb.com
It will download mongodb-win32-x86_64-2008plus-ssl-4.0.0-signed.msi file, install it in your computer.
Setup Configfilename.conf file
create file and type below commands
storage.dbPath: "D:/Data/Mongo/dbname"
systemLog:
destination: file
path: "d:/Data/Mongo/dbname/log/mongo.log"
logAppend: true
net:
port: portnumber (e.g. 20005)
Command
mongod.exe --config D:\Data\Mongo\configfilename.conf --service --install --serviceName "MongoDB dbname PortNumber" --serviceDisplayName "MongoDB dbname PortNumber"
Execute command
Open my computer and goto path C:\Program Files\MongoDB\Server\3.0\bin
Type cmd on path, it will open command window
Execute above command
Then open "Services.msc" and start service which you created
Enjoy !!!
Execute above command
Then open "Services.msc" and start service which you created
Enjoy !!!
:)
No comments:
Post a Comment