Question
How to maintain mongodb config file?
I want to use mongod –dbpath with setParameter but I cannot because I can not stop mongodb on digitalocean. How can I do it?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×
I need to use this parameter: “mongod –setParameter failIndexKeyTooLong=false”
But without stoping mongodb I can not do it. Else I need mongodb to use my path to DB, it uses /var/lib/mongodb, and doesn’t allow me to change path with mongod –dbpath
How to turn mongodb off?