AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Start mongodb server windows5/5/2023 ![]() This option also can reduce the maximum file size of each journal files from 1GB to 128MB. mongod -logpath C:\mongodb\logs\mongodb.log Limit Data File Sizeįor development purpose, you can reduce the initial data files size of MongoDB server and limit the maximum data files size up to 512MB with -smallfiles option. You can specify the MongoDB server to write the logs to a log file. mongod -dbpath C:\mongodb\data\db Write Logs to File You can specify the MongoDB server to store the database data in different data directory. mongod -port 27018 Store Data to Different Directory You can start the MongoDB server to listen to different port number for connections. Listen to port 27017 for new connections.Store data in data directory C:\data\db.MongoDB server will be started with the following default settings: We can start MongoDB server without any command line options by executing the following command in Command Prompt window: mongod ![]() Start MongoDB without Command Line Options ![]() In this tutorial, we will show you how to start the MongoDB server with some command line options on Windows. ![]()
0 Comments
Read More
Leave a Reply. |