Changing MongoDB data store directory
The short answer is that the –dbpath parameter in MongoDB will allow you to control what directory MongoDB reads and writes it’s data from. mongod –dbpath /usr/local/mongodb-data Would start mongodb and put the files in /usr/local/mongodb-data. Depending on your distribution and MongoDB installation, you can also configure the mongod.conf file to do this automatically: # … Read more