![]() mongod -port 27018 -dbpath C:\mongodb\data\db -logpath C:\mongodb\logs\mongodb.log -smallfiles You can start the MongoDB server with all above options in one command line. Note: -smallfiles option is not recommended for production server. 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.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |