![]() Install the MongoDB service by starting mongod.exe with the –install option and the -config option to specify the previously created configuration file "C:\mongodb\bin\mongod.exe" -config "C:\mongodb\mongod.cfg" -install Create a configuration file (optional)Ĭreate a file at C:\mongodb\mongod.cfg that specifies both systemLog.path and storage.dbPath: systemLog:Ĩ. Create directories (optional)Ĭreate directories for your database and log files mkdir c:\data\dbħ. To connect to MongoDB through the mongo.exe shell, open another Command Prompt C:\mongodb\bin\mongo.exe 6. For example, from the Command Prompt C:\mongodb\bin\mongod.exe 5. You can specify an alternate path for data files using the –dbpath option to mongod.exe, for example: C:\mongodb\bin\mongod.exe -dbpath d:\test\mongodb\data 4.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |