[DOCS-7491] Comment on: "manual/tutorial/install-mongodb-on-linux.txt" Created: 23/Mar/16  Updated: 03/Nov/17  Resolved: 18/Apr/16

Status: Closed
Project: Documentation
Component/s: None
Affects Version/s: None
Fix Version/s: 01112017-cleanup

Type: Bug Priority: Major - P3
Reporter: Docs Collector User (Inactive) Assignee: Ravind Kumar (Inactive)
Resolution: Done Votes: 0
Labels: collector-298ba4e7
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

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


Participants:
Days since reply: 7 years, 43 weeks, 2 days ago

 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.



 Comments   
Comment by Ravind Kumar (Inactive) [ 18/Apr/16 ]

Reached out to user via email and left comment, no responses.

Comment by Ravind Kumar (Inactive) [ 23/Mar/16 ]

Hello Max,

Thanks for reaching out.

It sounds like you are looking for the config parameter.

mongod --config <path-to-config-file>

You can run the mongod as a service passing that config file if you want simplify management further.

I hope this answers your question!

Generated at Thu Feb 08 07:54:23 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.