I understand that mongo db need to be started before I can interact with it. But what I don’t understand why do I set the dbpath every time? I thought we only need to configure that path once. Am I correct?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can solve this two ways:
/data/db/You could make a few scripts, as I said in my last point, to do this for you, as an example:
Then with a single command:
Or as an upstart job:
Something along those lines