Details
-
Bug
-
Resolution: Done
-
Major - P3
-
None
-
None
-
Linux Fedora 21 64-bit
*Location*: https://docs.mongodb.org/manual/tutorial/install-mongodb-on-linux/
*User-Agent*: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.80 Safari/537.36 Vivaldi/1.0.344.37
*Screen Resolution*: 1920 x 1080
*repo*: docs
*source*: tutorial/install-mongodb-on-linux
Linux Fedora 21 64-bit *Location*: https://docs.mongodb.org/manual/tutorial/install-mongodb-on-linux/ *User-Agent*: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.80 Safari/537.36 Vivaldi/1.0.344.37 *Screen Resolution*: 1920 x 1080 *repo*: docs *source*: tutorial/install-mongodb-on-linux
Description
I've installed mongodb for linux from Tarbal and truing to configure it.
I try to configure the db path/ when i start mongod with mongod --dbpath /my/path/to/directory , everithing starts well but how to configure it once so that I do not need to write flag everytime I start mongod.
I created file mongobd.conf (it contains this line dbpath=/home/st.cremer/Сайты/Aquariver_node/DBs_mongo/db ) in /etc/ and then copied it to folder were mongo is installed and to bin folder. dbpath is still standard dbpath=/data/db.