I am using ubuntu 16.04! Is it possible to change the data directory for a specific database in mongo? I am trying to configure this recommendation engine , and I was asked to create a new MongoDB database and set its folder path.
Preliminary version 3.0.0 , all databases in which one mongodhost must be in the same dbpath folder, which can be specified using command arguments using the flag --dbpathor file configuration.
mongod
--dbpath
However, can you run multiple mongods and host them separately? or on different ip / ports.
3.0.0 --directoryperdb (. https://docs.mongodb.com/manual/reference/program/mongod/#cmdoption--directoryperdb)
--directoryperdb
. -dbpath, .
mongod.exe
mongod.exe --dbpath " "
.
yes, maybe run the mongod process with the --dbpath option
Source: https://habr.com/ru/post/1665599/More articles:Avoid clicking on a table row - angularWhy is MYSQL still using fsync () to clear data when the O_DIRECT option? - mysqlHow to prepare new text with gensim doc2vec - gensimTYPO3 Extbase: CSRF-FormProtection does not work for a non-administrator user, in the interface - phpHow to specify a user / group in a new message on the channel? - microsoft-teamsWhy does git stash create 2 commit objects? Seems 1 was adequate - gitIntegrate Flash animation (or a derivative format) on Fabric.js canvas - javascriptUsing sorting in mounodb $ regex - mongodbHow to get rid of scalac ServerException with IntelliJ Idea - scalaDEBUG vs RELEASE и распространение сборки - c#All Articles