You can download binaries from the MongoDB website.
There are many variations of the mongod command to change the default behavior, one of which is:
- dbpath arg directory for data files
Based on the comments:
But it is advisable to specify all the configurations in the configuration file and simply call mongod with:
- configuration file name
source share