"path" : "C:\\mongodb\\logs\\mongodb.log"Ĭongratulation! You have learned how to start the MongoDB server using configuration file on Windows. The output will look something like: C:\Users\chankok>mongo -port 27018 Execute the following command in MongoDB shell: > use admin This is an optional step for you to check what configuration options have been used to start the MongoDB server. Open another Command Prompt window and execute the following command: mongo -port 27018 4. Connect MongoDBĬonnect to MongoDB via MongoDB shell. I don’t know what problems this might cause me later, but I’ll deal with that when I get to it. Start the MongoDB server using configuration file with the -config option or -f option. Press Cmd+R keys to bring up start menu Type services and run the app Locate MongoDB Server, right-click and select Properties Access LogOn tab Select Local System account radio button Select OK. Note: MongoDB configuration file is written in YAML format, you have to use SPACE characters instead of TAB characters for indentation in configuration file because YAML doen’t support TAB characters. # Reduce data files size and journal files size Edit the file and specify the configuration options that you required in the configuration file for MongoDB server startup. In this guide, we create the configuration file at C:\mongodb\conf\nf. ![]() What We UsedĬreate a text file and name it as nf. In this tutorial, we will show you how to start the MongoDB server with configuration file on Windows.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |